ember.js - Jekyll and EmberJS conflicts? -
does have insight using jekyll emberjs project , if poses problems either framework since use double curly brace syntax variables such {{ title }}.
i wanted check see if had inside info before starting large environment build out jekyll , emberjs.
ember , jekyll uses same syntax inject variables in templates.
- jekyll uses liquid template engine. in system, use
{{variable}}display content ofvariable, defined in font-matter of page (or site configuration). - ember uses handlebars template engine default, ember/handlebars, use
{{variable}}accessvariableattribute or property of controller (or model).
this must source of conflict. , can avoided surrounding handlebars code {% raw %} , {% endraw %} tags. see question details:
{% raw %} <script type='text/x-handlebars' data-template-name='index'> <div>{{title}}</div> </script> {% endraw %} regards
Comments
Post a Comment