Code Helpers
Visit the: code | unit tests
{embed}
Embed code from an external file as preformatted text.
Params
filepath
String: filepath to the file to embed.language
String: Optionally specify the language to use for syntax highlighting.returns
String
Example
{{embed 'path/to/file.js'}}
{{embed 'path/to/file.hbs' 'html')}}
{gist}
Embed a GitHub Gist using only the id of the Gist
Params
id
Stringreturns
String
Example
{{gist "12345"}}
{jsfiddle}
Generate the HTML for a jsFiddle link with the given params
Params
params
Objectreturns
String
Example
{{jsfiddle id="0dfk10ks" tabs="true"}}