<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mustache on New Schematic</title><link>https://newschematic.org/tags/mustache/</link><description>Recent content in Mustache on New Schematic</description><generator>Hugo</generator><language>en-us</language><copyright>Christopher Boette, CC by-sa-nc</copyright><lastBuildDate>Sun, 13 Jul 2014 23:12:15 +0000</lastBuildDate><atom:link href="https://newschematic.org/tags/mustache/index.xml" rel="self" type="application/rss+xml"/><item><title>Loading Partials in Mustache</title><link>https://newschematic.org/blog/loading-partials-in-mustache/</link><pubDate>Sun, 13 Jul 2014 23:12:15 +0000</pubDate><guid>https://newschematic.org/blog/loading-partials-in-mustache/</guid><description>&lt;p&gt;This took me a while to put together. Luckily, RTFM helped. By the way, the example is written in Jade, which I compile to HTML [with Mustache braces in place] using a Grunt task.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;index.jade&lt;/code&gt; has this thing: &lt;code&gt;{{&amp;gt; header}}&lt;/code&gt; but it renders to a blank line.&lt;/p&gt;
&lt;p&gt;I had the &lt;code&gt;header.mustache&lt;/code&gt; file in the same directory (&lt;code&gt;mustache/&lt;/code&gt;) as &lt;code&gt;index.mustache&lt;/code&gt; [which is the file to which the Jade template compiles]. That directory, however, was not the default location that the &lt;code&gt;grunt-mustache-render&lt;/code&gt; task was using. So, in my Gruntfile, I simply added &lt;code&gt;options: {directory: "mustache/"}&lt;/code&gt; to the &lt;code&gt;mustache_render&lt;/code&gt; task.&lt;/p&gt;</description></item></channel></rss>