Permalink
Browse files

add api docs

  • Loading branch information...
1 parent e137b5a commit 6e0414979f5464b2feba01dc8680ca8eccd3ae44 @tj tj committed Sep 5, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Readme.md
View
@@ -40,6 +40,16 @@ module.exports = function(obj) {
};
```
+## API
+
+### minstache(str, [obj])
+
+ Compile and render the given mustache `str` with optional context `obj`.
+
+### minstache.compile(str)
+
+ Compile the mustache `str` to a stand-alone `Function` accepting a context `obj`.
+
## Todo
I just basically needed interpolation for now, but I'll add this stuff later:

0 comments on commit 6e04149

Please sign in to comment.