diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-02-27 03:09:53 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-02-27 03:23:43 -0700 |
| commit | 011f9a04b3c2bba63b4bda962b769c5e4e31a8a8 (patch) | |
| tree | 80c4b344ffd55ffc9dc514a3dccfcbb04805c192 /test/fixtures/custom-backends | |
| parent | d3269b6fd3c82fe63c2acefbd646215f4f824922 (diff) | |
make document parsing a discrete step, make Reader accessible as property on Document
- pull parsing out of Document#initializer and make it a discrete step
- don't parse Document on creation unless :parse option is true
- make Reader accessible as a read-only property on Document
- rewrite reader tests to use Reader created by Document
- optimize access to instance variables in Document#initializer
- use requested ERB implementation in TemplateConverter, add tests
Diffstat (limited to 'test/fixtures/custom-backends')
| -rw-r--r-- | test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb b/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb new file mode 100644 index 00000000..7eb80950 --- /dev/null +++ b/test/fixtures/custom-backends/erb/html5/block_paragraph.html.erb @@ -0,0 +1,6 @@ +<%#encoding:UTF-8%><div<%= @id && %( id="#{@id}") %> class="<%= ['paragraph',role].compact * ' ' %>"><% +if title? %> +<div class="title"><%= title %></div><% +end %> +<p><%= content %></p> +</div> |
