Created
January 27, 2009 15:34
-
-
Save omgitsads/53383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This needs to match | |
# Results: | |
# Result 1 | |
# "<p>{{if something > something_else}}</p>\n<p>Show some content</p>\n<p>{{end}}</p>" | |
<p>{{if something > something_else}}</p> | |
<p>Show some content</p> | |
<p>{{end}}</p> | |
# As does this, also 3 paragraphs, 4 paragraphs, 5 para.... | |
# Results: | |
# Result 1 | |
# "<p>{{if something > something_else}}</p>\n<p>Show some content</p>\n<p>Show some more content</p>\n<p>{{end}}</p>" | |
<p>{{if something > something_else}}</p> | |
<p>Show some content</p> | |
<p>Show some more content</p> | |
<p>{{end}}</p> | |
# This Also, note that the spans and strongs dont really matter, they could be anything, it essentially needs to ignore them, | |
# they could also have attributes on the elements also | |
# Results: | |
# Result 1 | |
# "<p><span>{{if something > something_else}}</span></p>\n<p><strong>Show some content</strong></p>\n<p><strong>Show some more content</strong></p>\n<p><span>{{end}}</span></p>" | |
<p><span>{{if something > something_else}}</span></p> | |
<p><strong>Show some content</strong></p> | |
<p><strong>Show some more content</strong></p> | |
<p><span>{{end}}</span></p> | |
# This needs to match as two matches | |
# Results: | |
# Result 1 | |
# "<p>{{if something > something_else</p>\n<p>Show some content</p>\n<p>Show some more content</p>\n<p>{{end}}</p>" | |
# Result 2 | |
# "<p>{{if something_else > something_other}}</p>\n<p>Show some content</p><p>{{end}}</p>" | |
<p>{{if something > something_else}}</p> | |
<p>Show some content</p> | |
<p>Show some more content</p> | |
<p>{{end}}</p> | |
<p>{{if something_else > something_other}}</p> | |
<p>Show some other content</p> | |
<p>Show some other other content</p> | |
<p>{{end}}</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment