15 matches across 1 files for func main lang:Markdown lang:Markdown path:packages/template-compiler/README.md
snippet_mode: auto · sorted by relevance
packages/template-compiler/README.md MARKDOWN 15 matches · showing 5 view file →
3> This package is auto-generated. For pull requests please see [src/platforms/web/entry-compiler.js](https://github.com/vuejs/vue/tree/dev/src/platforms/web/entry-compiler.js).
4
5This package can be used to pre-compile Vue 2.0 templates into render functions to avoid runtime-compilation overhead and CSP restrictions. In most cases you should be using it with [`vue-loader`](https://github.com/vuejs/vue-loader), you will only need it separately if you are writing build tools with very specific needs.
6
7## Installation
· · ·
24{
25 ast: ?ASTElement, // parsed template elements to AST
26 render: string, // main render function code
27 staticRenderFns: Array<string>, // render code for static sub trees, if any
28 errors: Array<string> // template syntax errors, if any
· · ·
30```
31
32Note the returned function code uses `with` and thus cannot be used in strict mode code.
33
34#### Options
· · ·
86- `directives`
87
88 An object where the key is the directive name and the value is a function that transforms an template AST node. For example:
89
90 ``` js
· · ·
98 ```
99
100 By default, a compile-time directive will extract the directive and the directive will not be present at runtime. If you want the directive to also be handled by a runtime definition, return `true` in the transform function.
101
102 Refer to the implementation of some [built-in compile-time directives](https://github.com/vuejs/vue/tree/dev/src/platforms/web/compiler/directives).
+ 10 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.