From de821e55ae48de984e79b6654ca227af1ec6f411 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 30 Sep 2012 01:03:43 -0700 Subject: [PATCH] Add `template` and `settings` build options unit tests and tweak `_.template` docs. Former-commit-id: c814799c82e5a1dde60e5eda4dda5cb192d437f9 --- doc/README.md | 6 +-- lodash.js | 6 +-- lodash.min.js | 36 ++++++++-------- test/test-build.js | 102 +++++++++++++++++++++++++++++++++------------ 4 files changed, 100 insertions(+), 50 deletions(-) diff --git a/doc/README.md b/doc/README.md index b442d5fea..41a04589a 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2527,7 +2527,7 @@ var compiled = _.template('hello: <%= name %>'); compiled({ 'name': 'moe' }); // => 'hello: moe' -var list = '<% _.forEach(people, function(name) { %>
  • <%= name %>
  • <% }); %>'; +var list = '<% _.forEach(people, function(name) { %>
  • <%= name %>
  • <% }); %>'; _.template(list, { 'people': ['moe', 'larry', 'curly'] }); // => '
  • moe
  • larry
  • curly
  • ' @@ -2536,12 +2536,12 @@ _.template('<%- value %>', { 'value': '