From a6f913a92ab5d58f16f62f1216513e2afd03d8d2 Mon Sep 17 00:00:00 2001 From: John Butler Date: Thu, 20 Oct 2011 10:36:54 +0100 Subject: [PATCH] it would be handy if I committed the tests! --- examples/dot_notation.html | 8 +++----- examples/dot_notation.js | 6 +++++- examples/dot_notation.txt | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) 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 @@

{{name}}

-

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 @@

A Book

-

Price: €200 Euro

+

Authors:

+

Price: €200 Euro In Stock

VAT: €40

-

Available Now