Instead of .js.handlebars use .hbs for handlebars templates

This commit is contained in:
Robin Ward 2014-09-26 15:23:15 -04:00
parent d26227ae3d
commit d0fb8bbcfc
187 changed files with 14 additions and 11 deletions

View file

@ -13,7 +13,7 @@
Then any handlebars files you create in the `connectors/evil-trout` directory Then any handlebars files you create in the `connectors/evil-trout` directory
will automatically be appended. For example: will automatically be appended. For example:
plugins/hello/assets/javascripts/discourse/templates/connectors/evil-trout/hello.handlebars plugins/hello/assets/javascripts/discourse/templates/connectors/evil-trout/hello.hbs
With the contents: With the contents:

View file

@ -38,10 +38,10 @@ export default {
if (me === "refresh") { if (me === "refresh") {
// Refresh if necessary // Refresh if necessary
document.location.reload(true); document.location.reload(true);
} else if (me.name.substr(-10) === "handlebars") { } else if (me.name.substr(-10) === "hbs") {
// Reload handlebars // Reload handlebars
var js = me.name.replace(".handlebars", "").replace("app/assets/javascripts", "/assets"); var js = me.name.replace(".hbs", "").replace("app/assets/javascripts", "/assets");
$LAB.script(js + "?hash=" + me.hash).wait(function() { $LAB.script(js + "?hash=" + me.hash).wait(function() {
var templateName; var templateName;
templateName = js.replace(".js", "").replace("/assets/", ""); templateName = js.replace(".js", "").replace("/assets/", "");

View file

@ -70,7 +70,7 @@
{{composer-text-area tabindex="4" value=model.reply}} {{composer-text-area tabindex="4" value=model.reply}}
{{popupInputTip validation=view.replyValidation shownAt=view.showReplyTip}} {{popupInputTip validation=view.replyValidation shownAt=view.showReplyTip}}
</div> </div>
<!-- keep the classes here in sync with post.js.handlebars --> <!-- keep the classes here in sync with post.hbs -->
<div class='preview-wrapper regular'> <div class='preview-wrapper regular'>
<div id='wmd-preview' {{bind-attr class="hidePreview:hidden :cooked"}}></div> <div id='wmd-preview' {{bind-attr class="hidePreview:hidden :cooked"}}></div>
</div> </div>

Some files were not shown because too many files have changed in this diff Show more