Lines Matching full:can
37 You can just download Handlebars.php as is, or with Composer.
59 At the minimum, we are required to have an array model and a template string. Alternatively we can …
78 The string above can be used as is in your PHP file, or be put in a file (ie: */templates/main.tpl*…
91 # With composer we can autoload the Handlebars package
94 # If not using composer, you can still load it manually.
153 ***$template*** : Template can be the name of the file or a string containing the handlebars/html.
164 Alternatively you can use $handlebars itself without invoking the render method
203 Handlebars expressions are the basic unit of a Handlebars template. You can use them alone in a {{m…
244 Nested handlebars paths can also include ../ segments, which evaluate their paths against a parent …
268 You can use the if helper to conditionally render a block. If its argument returns false, null, "" …
295 You can use the unless helper as the inverse of the if helper. Its block will be rendered if the ex…
306 You can iterate over a list using the built-in each helper. Inside the block, you can use {{this}} …
366 You can optionally provide an {{else}} section which will display only when the list is empty.
400 When looping through items in each, you can optionally reference the current loop index via {{@inde…
417 You can shift the context for a section of a template by using the built-in with block helper.
590 Variable and blocks can still be used
632 You can use comments in your handlebars code just as you would in your code. Since there is general…
642 Partials are other templates you can include inside of the main template.
656 Block helpers make it possible to define custom iterators and other helpers that can invoke the pas…
670 And now we can use the helper like this: