Lines Matching refs:use

98 use Handlebars\Handlebars;
99 use Handlebars\Loader\FilesystemLoader;
109 # We'll use $handlebars throughout this the examples, assuming the will be all set this way
164 Alternatively you can use $handlebars itself without invoking the render method
174 Let's use this simple model for the following examples, assuming everything is already set like above.
203 Handlebars expressions are the basic unit of a Handlebars template. You can use them alone in a {{mustache}}, pass them to a Handlebars helper, or use them as values in hash arguments.
253 Handlebars HTML-escapes values returned by a {{expression}}. If you don't want Handlebars to escape a value, use the "triple-stash", {{{ }}}
268 You can use the if helper to conditionally render a block. If its argument returns false, null, "" or [] (a "falsy" value), Handlebars will not render the block.
295 You can use the unless helper as the inverse of the if helper. Its block will be rendered if the expression returns a falsy value.
306 You can iterate over a list using the built-in each helper. Inside the block, you can use {{this}} or {{.}} to reference the element being iterated over.
558 To use a default value if the string is empty: `{{#default title $defaultValue}}`
600 Allow to define a block of content and use it later. It helps follow the DRY (Don't repeat yourself) principle.
632 You can use comments in your handlebars code just as you would in your code. Since there is generally some level of logic, this is a good practice.
658 To create your own helper, use the method: `Handlebars::addHelper($name, $callback)`
670 And now we can use the helper like this: