This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
jQuery.compile
This is the method that will convert the HTML to a Javascript function.
$(html).compile( fName [, directives, context ] )Parameters:
fName | String | Is the name we want to give to the compiled template |
Directives (optional) |
Object | This is the command… Either a context or a directive or both need to be passed to have the template changed. |
context (optional) |
Object | If we want to use the auto-rendering, the context needs to be passed for the compilation. |
Output:
string | JS code | The source code of the HTML template converted to the Javascript function is returned. The compiled function will be available at $p.compiledFunctions[fName].compiled |
Note:
- If no directives and no context are provided to the method, the outerHTML of the html template will be compiled as is.
- See more information about compiling html template at optimize your response time







