Searched refs:Handlebars (Results 1 - 12 of 12) sorted by relevance
/yui3/src/handlebars/js/ |
H A D | yui-handlebars-base-after.js | 5 Handlebars is a simple template language inspired by Mustache. 7 This is a YUI port of the original Handlebars project, which can be found at 16 Provides basic Handlebars template rendering functionality. Use this module when 24 Handlebars is a simple template language inspired by Mustache. 26 This is a YUI port of the original Handlebars project, which can be found at 29 @class Handlebars 32 Y.Handlebars = Handlebars; 34 Handlebars.VERSION += '-yui'; 36 // The rest of this file is just API docs for methods defined in Handlebars [all...] |
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-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-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-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 | 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 | 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-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-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...] |
/yui3/build/handlebars-base/ |
H A D | handlebars-base-debug.js | 4 Handlebars.js - Copyright (C) 2011 Yehuda Katz 12 var Handlebars = {}; 14 Handlebars.VERSION = "1.0.beta.5"; 16 Handlebars.helpers = {}; 17 Handlebars.partials = {}; 19 Handlebars.registerHelper = function(name, fn, inverse) { 24 Handlebars.registerPartial = function(name, str) { 28 Handlebars.registerHelper('helperMissing', function(arg) { 38 Handlebars.registerHelper('blockHelperMissing', function(context, options) { 65 Handlebars [all...] |
/yui3/src/handlebars/tests/ |
H A D | handlebars-test.js | 4 H = Y.Handlebars, 9 name: 'Handlebars', 14 // This functionality is already covered by Handlebars' own unit tests, but we 159 H.render('{{safe}}', {safe: new Y.Handlebars.SafeString("&<>\"'`")})
|
/yui3/build/handlebars-compiler/ |
H A D | handlebars-compiler-debug.js | 4 Handlebars.js - Copyright (C) 2011 Yehuda Katz 10 // This is necessary because the Y.Handlebars object is created in the 11 // handlebars-base module, but the native Handlebars code expects to use a local 12 // Handlebars reference. 13 var Handlebars = Y.Handlebars; 509 Handlebars.Parser = handlebars; 511 Handlebars.parse = function(string) { 512 Handlebars.Parser.yy = Handlebars [all...] |
Completed in 44 milliseconds