User Tools

Site Tools


snowman:underscore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

snowman:underscore [2017/10/09 20:39] (current)
Line 1: Line 1:
 +Snowman includes and supports the [[http://​underscorejs.org/​|Underscore.js library]]. Template code can be used through the use of the "<​%"​ and "​%>"​ symbols for arbitrary code and the "<​%="​ for interpolating (writing a value directly to the document).
 +
 +===== Underscore Template Usage =====
 +<​code>​
 +<% Arbitary Code block %>
 +</​code>​
 +
 +===== Interpolate (Write-to-Page) =====
 +<​code>​
 +<%= Value.to.write %>
 +</​code>​
 +
 +
  
snowman/underscore.txt ยท Last modified: 2017/10/09 20:39 (external edit)