express_templates 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/express_templates/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c10e4c45bfe51e0e1c5cd04c6bd0215e0d09dd
|
4
|
+
data.tar.gz: a788a2153dc72e22d889f0d1f8101a4449fea6d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57148d71a0ca84f898b7711283bb50ac2dc25215b2c0c05f612b63875057e0578838f06c92027f463700d7a6341cc4ef4a837d43b394d6d6287e07b0f791b53
|
7
|
+
data.tar.gz: c95398d9d2248738b56b4886a8b649b300d2a93077329eca1d91e0d670af0c8ca3ceaa7dac0afbbd97b6cfeb640380aca5f154f2adc413b7c0d38460afd21134
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ You will now have also be able to utilize components which are found with docume
|
|
42
42
|
|
43
43
|
To understand ExpressTemplates, you must first understand the standard tools of ERB and Haml which have been with us for quite some time.
|
44
44
|
|
45
|
-
[Haml/Erb Diagram](https://raw.githubusercontent.com/aelogica/express_templates/master/diagrams/diagram_haml_erb.png "Haml/Erb Diagram")
|
45
|
+
![Haml/Erb Diagram](https://raw.githubusercontent.com/aelogica/express_templates/master/diagrams/diagram_haml_erb.png "Haml/Erb Diagram")
|
46
46
|
|
47
47
|
Both of these provide a language for embedding other languages. Erb embeds Ruby between <% %> style tags. This is similar to the way we worked with PHP and for those who can remember "embedded Perl" in 1990s. Erb places no constraints on either the text into which the Ruby is embedded, nor on the Ruby which may be placed within the delimiters which comprise Erb's simple grammar.
|
48
48
|
|
@@ -54,7 +54,7 @@ Both Haml and Erb compile down to Ruby code which must be eval()'d in a View Con
|
|
54
54
|
|
55
55
|
ExpressTemplates introduces an earlier step in this process, "expansion", which may be likened to a kind of macro system. This is introduced to facilitate reusable view components in the form of normal object-oriented Ruby classes.
|
56
56
|
|
57
|
-
[Diagram depciting Haml/Erb](https://raw.githubusercontent.com/aelogica/express_templates/master/diagrams/diagram_express_templates.png "Diagram depciting Haml/Erb")
|
57
|
+
![Diagram depciting Haml/Erb](https://raw.githubusercontent.com/aelogica/express_templates/master/diagrams/diagram_express_templates.png "Diagram depciting Haml/Erb")
|
58
58
|
|
59
59
|
## Constraints - Important!
|
60
60
|
|