1. Shantanu Kumar
  2. Clj-StringTemplate


shantanuk  committed 8bbad8c

update README with 0.2 API
bump version in pom.xml

  • Participants
  • Parent commits eda1391
  • Branches default

Comments (0)

Files changed (2)


View file
       (:use org.bituf.clj-stringtemplate))
+## Create empty view template
+    (create-view)
+This creates an empty view template, which is not very useful by itself. You
+can reset the template using reset-view! (described below).
+## Create view template from specified string parameter
+    (create-view "hello $adjective$ world")
+The snippet above will create a view template using the specified string
+"hello $adjective$ world".
 ## Load view template from classpath
     (get-view-from-classpath "hello")
+## Reset view template using specified string template
+    (let [view (create-view "hello")]
+      ...
+      (reset-view! view "hello $adjective$ world")
+      ...
+      (fill-view! view "name" "Henry")
+      ...)
+The snippet above first creates a view template, then resets it with another
 ## Populate view template with attribute/values
     (let [view (get-view-from-classpath "hello")]

File pom.xml

View file
-  <version>0.2-SNAPSHOT</version>
+  <version>0.2</version>
   <description>Clj-Stringtemplate is a Clojure wrapper for the StringTemplate Java library</description>