From 1b197be7fcec82bc2e779aa9f5a09c629255582d Mon Sep 17 00:00:00 2001 From: Anton Rudeshko Date: Sun, 7 Oct 2012 06:20:06 -0700 Subject: [PATCH] Added AMD option doc --- README.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 44727ed5..5fdb62a5 100644 --- a/README.markdown +++ b/README.markdown @@ -19,7 +19,7 @@ In general, the syntax of Handlebars.js templates is a superset of Mustache temp Once you have a template, use the Handlebars.compile method to compile the template into a function. The generated function takes a context argument, which will be used to render the template. ```js -var source = "

Hello, my name is {{name}}. I am from {{hometown}}. I have " + +var source = "

Hello, my name is {{name}}. I am from {{hometown}}. I have " + "{{kids.length}} kids:

" + ""; var template = Handlebars.compile(source); @@ -220,6 +220,7 @@ Precompile handlebar templates. Usage: handlebars template... Options: + -a, --amd Create an AMD format function (allows loading with RequireJS) [boolean] -f, --output Output File [string] -k, --known Known helpers [string] -o, --knownOnly Known helpers only [boolean]