From 0d1d16f7a0533c51205826ab6763a2c365ecce93 Mon Sep 17 00:00:00 2001 From: eavichay Date: Mon, 9 Jan 2017 09:15:04 +0200 Subject: [PATCH] updated documentation --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56d3b51..171a7b5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,19 @@ A property can be bound to an attribute, see example: ``` slim injects a property getter/setter functions for *parentProperty* and updates automatically the child node on every update +### Content inclusion +``` +Slim.tag('my-form, class extends Slim { + get template() { + return '
+ +
+ } +}) +... + +``` + ### Interface / Lifecycle - get template() // return your HTML - onBeforeCreated() // before the binding happens @@ -71,7 +84,12 @@ get template() { return `
[[data.someProperty]]
` } ``` - +Repeaters support complex display trees, as all elements in the tree accept the data and the index +``` +
  • +
    [[data_index]] +
  • +``` ## Installation ``` npm install slim-js