From 47d11839b72dfb5ece830ce8b0d06087eb5a6897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kus=20C=C3=A1mara?= Date: Wed, 31 May 2017 00:03:52 +0200 Subject: [PATCH] Allow to update content dynamically and to render the content inside the template (#1) * feat(*): allow to change content inside template dynamically and to render the content * refactor(js): disconnect nodesObserver in disconnectedCallback * fix(styles): CSS var name * refactor(js): use arrow function instead of bind * update docs, demo and remove failing test * test(): with render attribute the code inside the template is rendered --- .gitignore | 3 +- README.md | 18 ++- bower.json | 3 +- code-sample.html | 65 ++++++---- demo/css/demo.css | 67 ++++++++++ demo/index.html | 242 +++++++++++++++++++++++++++---------- test/code-sample_test.html | 28 +++-- 7 files changed, 326 insertions(+), 100 deletions(-) create mode 100644 demo/css/demo.css diff --git a/.gitignore b/.gitignore index c1efe5b..20e9e81 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.DS_Store bower_components/ -coverage-reports/ \ No newline at end of file +coverage-reports/ diff --git a/README.md b/README.md index c34104f..0a91a3a 100644 --- a/README.md +++ b/README.md @@ -59,16 +59,25 @@ Forget to worry about spaces, indentation, HTML entities, etc. ## Usage The code to highlight must be provided inside a ` + + + + - - - - - - - - - - - - - - - - - - - - - - + + + +