dev.html

10gen's HTML templates are similar to the jxp templates - please see the jxp documentation.

The major difference is that you can inline data references simply by using the "$" prefix on a variable name:

  Hello, my name is $name

When rendered, "$name" is replaced by the value of the name field in the object passed into the template by the caller.

So if the above html was in a template called "mytemplate.html" in the root of your application, you could invoke via :

   local.mytemplate({name : "bob"});

with the resulting output :

  Hello, my name is bob

The only real benefit of html over jxp or djang10 is if you wanted to make an existing set of html pages dynamic, by adding the $variable_name in the right places in the documents.

We recommend that when creating a new application, you use the djang10 template framework.