Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small corrections in the README file.

  • Loading branch information...
commit f532b057319715ca562f7532273e208ed3bfd9ad 1 parent 49b070f
@florinpatrascu authored
Showing with 19 additions and 14 deletions.
  1. +19 −14 mustache/README.md
View
33 mustache/README.md
@@ -4,13 +4,17 @@ This extension is adding the [Mustache.java](https://github.com/spullara/mustach
### Build from source
- # check if the `${MICRO_HOME}` environment variable is defined
- # then:
-
- $ cd mustache
- $ ant dist
+Check if the `${MICRO_HOME}` environment variable is defined:
+
+ $ echo $MICRO_HOME
+ ~/projects/micro
+
+Then:
+
+ $ cd mustache
+ $ ant dist
-### Install
+### Use it with a (µ)Micro web application
Copy (or create symbolic links to) the `mustache` folder and `mustache.yml` file to your application extensions folder. The `extensions` folder will contain at least the following:
extensions/
@@ -22,17 +26,18 @@ The `mustache.yml` may contain various configuration options for the `Mustache`
class: ca.simplegames.micro.extensions.MustacheExtension
engine:
- name: st
+ name: mustache
class: ca.simplegames.micro.viewers.mustache.MustacheViewRenderer
- options: {}
+ options:
+ cache: views
+ # ^^^^^ the name of the cache used for the compiled mustaches.
-Edit the `application.bsh` startup controller and require the `st` extension, example:
+Edit the `application.bsh` startup controller and require the `mustache` extension, example:
site.ExtensionsManager
- .require("i18N")
- .require("Mustache");
-
-That's all.
+ .require("mustache");
+
+Visit [Mustache](http://mustache.github.com/) to learn more about this template engine.
### License
-**Apache License 2**, see the `LICENSE` file in this folder.
+**Apache License 2**, see the [LICENSE](LICENSE) file in this folder.
Please sign in to comment.
Something went wrong with that request. Please try again.