ember.js - Script tags in ember handlebars template -
i include github gist in ember handlebars template. however, gists come in form of script tags , these not seem work when within template. clear gist entered text area , persisted via firebase. upon viewing article gist not display. know escaping in template e.g. {{{body}}} not work.
any suggestions of how create script tags render/fire within templates much appreciated.
there no possibility of getting script tags execute within htmlbars templates unfortunately. far know, there no way around - there alternative approaches, depending on needs.
one potential approach inject script dynamically during didinsertelement
hook using 1 of methods described here: how dynamically insert <script> tag via jquery after page load?
this not recommend doing regularly, there special circumstances cannot done conventional means, one.
ember.js
No comments:
Post a Comment