<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/template</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 08:20:34 GMT</pubDate>
<item>
<title>(JavaScript) Safe replace {{some_var}} in JS strings - inreflection7</title>
<link>http://snipplr.com/view/68700/safe-replace-somevar-in-js-strings/</link>
<description><![CDATA[ <p>For those moments of weakness when .replace() looks like a good idea...</p> ]]></description>
<pubDate>Thu, 22 Nov 2012 15:12:03 GMT</pubDate>
<guid>http://snipplr.com/view/68700/safe-replace-somevar-in-js-strings/</guid>
</item>
<item>
<title>(JavaScript) Javascript Class Template - XtreamIT</title>
<link>http://snipplr.com/view/67938/javascript-class-template/</link>
<description><![CDATA[ <p>jsHint happy class template for javascript</p> ]]></description>
<pubDate>Thu, 25 Oct 2012 19:28:45 GMT</pubDate>
<guid>http://snipplr.com/view/67938/javascript-class-template/</guid>
</item>
<item>
<title>(JavaScript) Simple JS templater - chupzzz</title>
<link>http://snipplr.com/view/62129/simple-js-templater/</link>
<description><![CDATA[ <p>Using:
t("Hello {who}!", { who: "JavaScript" });
t("Hello {who}! It's {time} ms since epoch.", { who: "JavaScript", time: Date.now });</p> ]]></description>
<pubDate>Mon, 26 Dec 2011 22:15:53 GMT</pubDate>
<guid>http://snipplr.com/view/62129/simple-js-templater/</guid>
</item>
<item>
<title>(JavaScript) My jQuery plugin start up - digitalzoomstudio</title>
<link>http://snipplr.com/view/53728/my-jquery-plugin-start-up/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 18 May 2011 10:04:57 GMT</pubDate>
<guid>http://snipplr.com/view/53728/my-jquery-plugin-start-up/</guid>
</item>
<item>
<title>(JavaScript) CSS Base Reset and Typography - sethetter</title>
<link>http://snipplr.com/view/51880/css-base-reset-and-typography/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 10 Apr 2011 05:10:55 GMT</pubDate>
<guid>http://snipplr.com/view/51880/css-base-reset-and-typography/</guid>
</item>
<item>
<title>(JavaScript) Javascript revealing module pattern template - coprolit</title>
<link>http://snipplr.com/view/50765/javascript-revealing-module-pattern-template/</link>
<description><![CDATA[ <p>"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope."
When inheritance is not needed and a only few instances is needed (Keep in mind that each instance places a new copy of each function in memory!)</p> ]]></description>
<pubDate>Thu, 17 Mar 2011 08:40:45 GMT</pubDate>
<guid>http://snipplr.com/view/50765/javascript-revealing-module-pattern-template/</guid>
</item>
<item>
<title>(JavaScript) jquery templating - rumremix</title>
<link>http://snipplr.com/view/50416/jquery-templating/</link>
<description><![CDATA[ <p>Most of spservices function can be ignored -- not specifically relevant to templating. Important code in that block is the array push.</p> ]]></description>
<pubDate>Thu, 10 Mar 2011 05:08:22 GMT</pubDate>
<guid>http://snipplr.com/view/50416/jquery-templating/</guid>
</item>
<item>
<title>(JavaScript) JS Object Tmplate - loric</title>
<link>http://snipplr.com/view/49288/js-object-tmplate/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 20 Feb 2011 18:59:03 GMT</pubDate>
<guid>http://snipplr.com/view/49288/js-object-tmplate/</guid>
</item>
<item>
<title>(JavaScript) Page-like structured array to HTML - pablo_PXL</title>
<link>http://snipplr.com/view/48473/pagelike-structured-array-to-html/</link>
<description><![CDATA[ <p>All glory to the ml function.</p> ]]></description>
<pubDate>Sun, 06 Feb 2011 03:36:09 GMT</pubDate>
<guid>http://snipplr.com/view/48473/pagelike-structured-array-to-html/</guid>
</item>
<item>
<title>(JavaScript) Mustache Sample Template - mattneary</title>
<link>http://snipplr.com/view/46224/mustache-sample-template/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Dec 2010 11:16:41 GMT</pubDate>
<guid>http://snipplr.com/view/46224/mustache-sample-template/</guid>
</item>
<item>
<title>(JavaScript) Simplest template engine - emdin</title>
<link>http://snipplr.com/view/46140/simplest-template-engine/</link>
<description><![CDATA[ <p>*String template (String template, Object data)*

Usage: 
template('Hello ${name}! (not ${name}?)', { name: 'Gandalf' })

Result: Hello Gandalf! (not Gandalf?)</p> ]]></description>
<pubDate>Sun, 26 Dec 2010 20:48:27 GMT</pubDate>
<guid>http://snipplr.com/view/46140/simplest-template-engine/</guid>
</item>
<item>
<title>(JavaScript) Static and Instantiable Classes in JavaScript - geekyjohn</title>
<link>http://snipplr.com/view/36161/static-and-instantiable-classes-in-javascript/</link>
<description><![CDATA[ <p>Simple template for setting up classes in JS</p> ]]></description>
<pubDate>Fri, 25 Jun 2010 10:31:06 GMT</pubDate>
<guid>http://snipplr.com/view/36161/static-and-instantiable-classes-in-javascript/</guid>
</item>
<item>
<title>(JavaScript) Template System - Piotrek290</title>
<link>http://snipplr.com/view/19320/template-system/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 06 Sep 2009 14:04:12 GMT</pubDate>
<guid>http://snipplr.com/view/19320/template-system/</guid>
</item>
<item>
<title>(JavaScript) inline templating class for javascript - leonardreinders</title>
<link>http://snipplr.com/view/16556/inline-templating-class-for-javascript/</link>
<description><![CDATA[ <p>I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.</p> ]]></description>
<pubDate>Wed, 01 Jul 2009 10:36:06 GMT</pubDate>
<guid>http://snipplr.com/view/16556/inline-templating-class-for-javascript/</guid>
</item>
<item>
<title>(JavaScript) Templating/Formatting a String - kayue</title>
<link>http://snipplr.com/view/10732/templatingformatting-a-string/</link>
<description><![CDATA[ <p>"The {adjective} {color} {animal} jumps".template({adjective: 'quick',color: 'brown', animal: 'fox'})
==> "The quick brown fox"</p> ]]></description>
<pubDate>Mon, 29 Dec 2008 01:52:38 GMT</pubDate>
<guid>http://snipplr.com/view/10732/templatingformatting-a-string/</guid>
</item>
<item>
<title>(JavaScript) JSON Template - narmolanya</title>
<link>http://snipplr.com/view/2590/json-template/</link>
<description><![CDATA[ <p>A short template, which shows the json syntax.</p> ]]></description>
<pubDate>Thu, 03 May 2007 02:50:10 GMT</pubDate>
<guid>http://snipplr.com/view/2590/json-template/</guid>
</item>
<item>
<title>(JavaScript) RND - simple template for innerHTML - mattgay</title>
<link>http://snipplr.com/view/787/rnd--simple-template-for-innerhtml/</link>
<description><![CDATA[ <p>Simple templating for innerHTML functions. Parses an input string (tmpl) for %(NAME) tokens, accepts an object (ns) as data and returns an output string.</p> ]]></description>
<pubDate>Fri, 11 Aug 2006 20:26:05 GMT</pubDate>
<guid>http://snipplr.com/view/787/rnd--simple-template-for-innerhtml/</guid>
</item>
<item>
<title>(JavaScript) Template - New JavaScript File - alvaroisorna</title>
<link>http://snipplr.com/view/328/template--new-javascript-file/</link>
<description><![CDATA[ <p>this is the template i mostly use when create new js files</p> ]]></description>
<pubDate>Mon, 10 Jul 2006 04:25:13 GMT</pubDate>
<guid>http://snipplr.com/view/328/template--new-javascript-file/</guid>
</item>
</channel>
</rss>