Back to Opencart

CodeMirror

upload/assets/codemirror/mode/handlebars/index.html

4.1.0.3833 B
Original Source

Handlebars

{{> breadcrumbs}} {{!-- You can use the t function to get content translated to the current locale, es: {{t 'article_list'}} --}}

{{t 'article_list'}}

{{! one line comment }} {{{propertyContainingRawHtml}}} {{#each articles}} {{~title}}

{{excerpt body size=120 ellipsis=true}}

{{#with author}} written by {{first_name}} {{last_name}} from category: {{../category.title}} {{#if @../last}}foobar!{{/if}} {{/with~}} {{#if promoted.latest}}Read this one! {{else}} This is ok! {{/if}} {{#if @last}}


{{/if}} {{/each}} {{#form new_comment}} {{/form}}

Handlebars syntax highlighting for CodeMirror.

MIME types defined: text/x-handlebars-template

Supported options: base to set the mode to wrap. For example, use

mode: {name: "handlebars", base: "text/html"}

to highlight an HTML template.