Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing readme

  • Loading branch information...
commit 50340a44d59c7b611f26e49c5ce43a414c4b1f1d 1 parent cffe1f6
@metakeule authored
Showing with 1 addition and 10 deletions.
  1. +1 −10 README.rdoc
View
11 README.rdoc
@@ -3,7 +3,7 @@
== Specification of Templates
It is based on the lazy_configtester gem and has the same requirements for a specification.
-Currently only mustache template might be checked.
+Currently only mustache templates might be checked.
== Examples:
@@ -38,15 +38,6 @@ the following template would match the spec
{{/children}}
</ul>
-:name or 'name' is a mandatory sub in the template that should have the placeholders a and b
- { :name => [a,b] }
-
-the 'a' and 'b' placeholders should have the placeholders 'c' or 'd'
- { ['a', 'b'] => ['c', 'd'] }
-
-there should be at least one sub and all placeholders should match against /peter/
- {'+' => /peter/}
-
=== Validation:
In order to check if a template matches the spec, create an instance of LazyTemplatetester and call check on it:
LazyTemplatetester.new(spec).check_mustache(template).check_mustache(template2).check_mustache(template3)
Please sign in to comment.
Something went wrong with that request. Please try again.