From: Jason Skomorowski Date: Mon, 20 Oct 2014 21:24:20 +0000 (-0400) Subject: Update template code and docs for new naming convention MKWS-294 X-Git-Tag: 1.0.0~154^2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=5c5852c7ce5f69d05875d2240f1b0e63179c106c;p=mkws-moved-to-github.git Update template code and docs for new naming convention MKWS-294 --- diff --git a/doc/mkws-manual.markdown b/doc/mkws-manual.markdown index 8f3cf42..74b8545 100644 --- a/doc/mkws-manual.markdown +++ b/doc/mkws-manual.markdown @@ -222,24 +222,24 @@ Overriding templates -------------------- To override the template for a widget, include it inline in the document -as a ` The Facet template has a special feature where you can override it on a per-facet basis by adding a dash and the facet name as a suffix eg. -`Facet-Subjects` rather than `Facet`. (So `class="mkwsTemplate_Facet-Subjects"`) +`facet-subjects` rather than `facet`. (So `class="mkws-template-facet-subjects"`) You can also explicitly specify a different template for a particular instance of a widget by providing the name of your alternative (eg. SpecialPager) as the value of the `template` key in the MKWS config object for that widget: -for example, `
`. +for example, `
`. Templates for MKWS can also be [precompiled](http://handlebarsjs.com/precompilation.html). If a precompiled @@ -278,7 +278,7 @@ Rather than use the included AJAX helpers to render record details inline, here's a Records template that will link directly to the source via the address provided in the metadata as the first element of `md-electronic-url`: -