Skip to content


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
@@ -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>
b => b.Processor = new StylesheetPipeline
- {
- ConvertImageUrlsToDataUris = true
- }
+ .EmbedImages(path => path.Contains("/embed/"))
+ .EmbedFonts(path => path.Contains("/embed/"))
+<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
@@ -64,6 +64,7 @@
<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>
3  src/Website/Website.csproj
@@ -248,6 +248,9 @@
<Content Include="Views\Documentation\Configuration_AddFile.cshtml" />
+ <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.