Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding compression notice

  • Loading branch information...
commit 20353296f0615aa0ba7f4afa1b48aa60d268f6b0 1 parent fd21e90
Addy Osmani authored May 14, 2011
2  README.md
Source Rendered
... ...
@@ -1,4 +1,4 @@
1  
-A very compact micro-templating solution created for learning purposes.
  1
+A very compact micro-templating solution created for learning purposes. Currently 0.2KB minified
2 2
 
3 3
 ### Sample usage
4 4
 
1  microtemplatez.min.js
... ...
@@ -0,0 +1 @@
  1
+var templatez=function(){return function(a,b){return a.replace(RegExp("{{\\s*([a-z0-9_][\\.a-z0-9_]*)\\s*}}","gi"),function(a,c){var d=c.split("."),e=d.length,f=b,g=0;for(g=0;g<e;g++){f=f[d[g]];if(g===e-1)return f}})}}()

0 notes on commit 2035329

Please sign in to comment.
Something went wrong with that request. Please try again.