From d4608fe8dccad9c6613346f8b5d028900a15acd7 Mon Sep 17 00:00:00 2001 From: amitk Date: Sun, 16 Nov 2014 01:28:22 +0200 Subject: [PATCH] More docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index da2c44b..34834f6 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,12 @@ Light weight templates for react. Reasons that we love it: * Declerative coding for presentation. HTML that you write and inspect look similar * Easy syntax. Similar to HTML. All IDEs recognize this format +[TOC] + ## How does it work React templates compiles a *.rt file (react template - extended HTML format) into a javascript file. Currently, this file supports requirejs format, that will return a function. This function, when applied, will return a virtual react DOM (based on React.DOM elements and user custom components). A common use case would be that a React component would require a JS file generated by a template, and then call `func.apply(this)`, causing the template to have the component as its context. -###### Basic concepts for react templates: +###### Basic concepts for react templates * Any valid HTML is a template (and comments) * {} to identify JS expression * rt-if