diff --git a/examples/dot_notation.html b/examples/dot_notation.html index 8cef14a..749ca3d 100644 --- a/examples/dot_notation.html +++ b/examples/dot_notation.html @@ -1,6 +1,4 @@
Price: {{price.currency.symbol}}{{price.value}} {{#price.currency}}{{name}}{{/price.currency}}
-VAT: {{price.currency.symbol}}{{price.vat}}
-{{#in_stock}} -Available Now
-{{/in_stock}} \ No newline at end of file +Authors:
Price: {{price.currency.symbol}}{{price.value}} {{#price.currency}}{{name}} {{availability.text}}{{/price.currency}}
+VAT: {{price.currency.symbol}}{{price.vat}}
\ No newline at end of file diff --git a/examples/dot_notation.js b/examples/dot_notation.js index 707174c..f41fafb 100644 --- a/examples/dot_notation.js +++ b/examples/dot_notation.js @@ -1,5 +1,6 @@ var dot_notation = { name: "A Book", + authors: ["John Power", "Jamie Walsh"], price:{ value: 200, vat: function() { @@ -10,5 +11,8 @@ var dot_notation = { name: 'Euro' } }, - in_stock: true + availability:{ + status: true, + text: "In Stock" + } }; \ No newline at end of file diff --git a/examples/dot_notation.txt b/examples/dot_notation.txt index 304ba38..770e4ce 100644 --- a/examples/dot_notation.txt +++ b/examples/dot_notation.txt @@ -1,4 +1,4 @@Price: €200 Euro
+Authors:
Price: €200 Euro In Stock
VAT: €40
-Available Now