Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing readme

  • Loading branch information...
commit 50340a44d59c7b611f26e49c5ce43a414c4b1f1d 1 parent cffe1f6
metakeule authored

Showing 1 changed file with 1 addition and 10 deletions. Show diff stats Hide diff stats

  1. +1 10 README.rdoc
11 README.rdoc
Source Rendered
@@ -3,7 +3,7 @@
3 3 == Specification of Templates
4 4
5 5 It is based on the lazy_configtester gem and has the same requirements for a specification.
6   -Currently only mustache template might be checked.
  6 +Currently only mustache templates might be checked.
7 7
8 8 == Examples:
9 9
@@ -38,15 +38,6 @@ the following template would match the spec
38 38 {{/children}}
39 39 </ul>
40 40
41   -:name or 'name' is a mandatory sub in the template that should have the placeholders a and b
42   - { :name => [a,b] }
43   -
44   -the 'a' and 'b' placeholders should have the placeholders 'c' or 'd'
45   - { ['a', 'b'] => ['c', 'd'] }
46   -
47   -there should be at least one sub and all placeholders should match against /peter/
48   - {'+' => /peter/}
49   -
50 41 === Validation:
51 42 In order to check if a template matches the spec, create an instance of LazyTemplatetester and call check on it:
52 43 LazyTemplatetester.new(spec).check_mustache(template).check_mustache(template2).check_mustache(template3)

0 comments on commit 50340a4

Please sign in to comment.
Something went wrong with that request. Please try again.