Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated docs for hogan templates and data uris.

  • Loading branch information...
commit 8f7d952a300fc8d055b7776e354a2eaa5bb69f53 1 parent b0eb5db
Christopher Cliff authored
11 src/Website/Views/Documentation/Stylesheets_DataUris.cshtml
View
@@ -4,11 +4,12 @@
<h1>Data URIs</h1>
<p>Warning: This feature is still experimental!</p>
-<p>Cassette can convert CSS images into data-URIs. Enable this feature with the following configuration.</p>
+<p>Cassette can convert CSS images (under 32kB) and fonts (TTF or OTF) into data-URIs. Enable this feature with the following configuration.</p>
<pre><code>bundles.Add&lt;StylesheetBundle&gt;(
"styles",
b => b.Processor = new StylesheetPipeline
- {
- ConvertImageUrlsToDataUris = true
- }
-);</code></pre>
+ .EmbedImages(path => path.Contains("/embed/"))
+ .EmbedFonts(path => path.Contains("/embed/"))
+);</code></pre>
+<p>EmbedImages and EmbedFonts both accept an optional expression to tell Cassette which file paths to include. By default, Cassette
+will attempt to embed all images and fonts.</p>
1  src/Website/Views/Documentation/_Documentation.cshtml
View
@@ -64,6 +64,7 @@
<ul>
<li>@DocLink("html-templates/jquery-tmpl", "jQuery-tmpl Compilation")</li>
<li>@DocLink("html-templates/knockoutjs-jquery-tmpl", "KnockoutJS")</li>
+ <li>@DocLink("html-templates/mustache-hoganjs", "Mustache/Hogan.js")</li>
</ul>
</li>
</ul>
3  src/Website/Website.csproj
View
@@ -248,6 +248,9 @@
<ItemGroup>
<Content Include="Views\Documentation\Configuration_AddFile.cshtml" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="Views\Documentation\HtmlTemplates_Hogan.cshtml" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Please sign in to comment.
Something went wrong with that request. Please try again.