Searched defs:Handlebars (Results 1 - 8 of 8) sorted by relevance
/yui3/src/handlebars/js/ |
H A D | yui-handlebars-compiler-before.js | 4 // This is necessary because the Y.Handlebars object is created in the 5 // handlebars-base module, but the native Handlebars code expects to use a local 6 // Handlebars reference. 7 var Handlebars = Y.Handlebars; variable
|
H A D | handlebars-base.js | 6 var Handlebars = {}; 8 Handlebars.VERSION = "1.0.beta.5"; 10 Handlebars.helpers = {}; 11 Handlebars.partials = {}; 13 Handlebars.registerHelper = function(name, fn, inverse) { 18 Handlebars.registerPartial = function(name, str) { 22 Handlebars.registerHelper('helperMissing', function(arg) { 32 Handlebars.registerHelper('blockHelperMissing', function(context, options) { 59 Handlebars.registerHelper('each', function(context, options) { 73 Handlebars [all...] |
H A D | handlebars-compiler-base.js | 4 Handlebars.Parser = handlebars; 6 Handlebars.parse = function(string) { 7 Handlebars.Parser.yy = Handlebars.AST; 8 return Handlebars.Parser.parse(string); 11 Handlebars.print = function(ast) { 12 return new Handlebars.PrintVisitor().accept(ast); 15 Handlebars.logger = { 22 Handlebars.log = function(level, str) { Handlebars [all...] |
H A D | yui-handlebars-utils.js | 1 // This file provides a YUI-specific implementation of Handlebars' lib/utils.js 2 // file. Handlebars unfortunately creates enclosed references to its utils, so 8 Handlebars.Exception = function (message) { 21 Handlebars.Exception.prototype = new Error(); 23 Handlebars.SafeString = function (string) { 27 Handlebars.SafeString.prototype.toString = function () { 31 Handlebars.Utils = { 40 if (string instanceof Handlebars.SafeString) { 46 // Unlike Handlebars' escaping implementation, Y.Escape.html() will 49 // a lack of double-escaping would make it impossible to use Handlebars [all...] |
H A D | handlebars-compiler-ast.js | 6 Handlebars.AST = {}; 8 Handlebars.AST.ProgramNode = function(statements, inverse) { 11 if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); } 14 Handlebars.AST.MustacheNode = function(params, hash, unescaped) { 22 Handlebars.AST.PartialNode = function(id, context) { 33 throw new Handlebars.Exception(open.original + " doesn't match " + close.original); 37 Handlebars.AST.BlockNode = function(mustache, program, close) { 44 Handlebars.AST.InverseNode = function(mustache, program, close) { 51 Handlebars.AST.ContentNode = function(string) { 56 Handlebars [all...] |
H A D | yui-handlebars-compiler-after.js | 5 Handlebars parser and compiler. Use this module when you need to compile 6 Handlebars templates. 22 @for Handlebars 24 Handlebars.logger.log = function (level, message) { 25 Y.log(message, levels[level] || 'error', 'Handlebars'); 29 Compiles and renders a Handlebars template string in a single step. 39 Y.Handlebars.render('The pie of the day is {{pie}}!', { 45 @param {String} string Handlebars template string to render. 53 Handlebars.render = function (string, context, options) { 54 return Handlebars [all...] |
H A D | handlebars-runtime.js | 4 Handlebars.VM = { 8 escapeExpression: Handlebars.Utils.escapeExpression, 9 invokePartial: Handlebars.VM.invokePartial, 14 return Handlebars.VM.program(fn, data); 18 programWrapper = this.programs[i] = Handlebars.VM.program(fn); 22 programWithDepth: Handlebars.VM.programWithDepth, 23 noop: Handlebars.VM.noop 28 return templateSpec.call(container, Handlebars, context, options.helpers, options.partials, options.data); 53 throw new Handlebars.Exception("The partial " + name + " could not be found"); 56 } else if (!Handlebars [all...] |
H A D | handlebars-compiler-compiler.js | 6 Handlebars.Compiler = function() {}; 7 Handlebars.JavaScriptCompiler = function() {}; 343 namespace: "Handlebars", 471 var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"]; 483 Handlebars.log(Handlebars.logger.DEBUG, functionSource + "\n\n"); 777 })(Handlebars.Compiler, Handlebars.JavaScriptCompiler); 779 Handlebars.precompile = function(string, options) { 782 var ast = Handlebars [all...] |
Completed in 288 milliseconds