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