inversion 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.rdoc +23 -0
  3. data/Manifest.txt +1 -38
  4. data/Rakefile +9 -2
  5. data/lib/inversion.rb +2 -2
  6. data/lib/inversion/template.rb +1 -1
  7. data/lib/inversion/template/begintag.rb +1 -1
  8. data/lib/inversion/template/elsiftag.rb +1 -1
  9. metadata +33 -69
  10. metadata.gz.sig +1 -2
  11. data/History.md +0 -4
  12. data/manual/layouts/default.erb +0 -87
  13. data/manual/lib/api-filter.rb +0 -96
  14. data/manual/lib/editorial-filter.rb +0 -59
  15. data/manual/lib/examples-filter.rb +0 -238
  16. data/manual/lib/links-filter.rb +0 -111
  17. data/manual/resources/css/manual.css +0 -764
  18. data/manual/resources/fonts/GraublauWeb.otf +0 -0
  19. data/manual/resources/fonts/GraublauWebBold.otf +0 -0
  20. data/manual/resources/fonts/Inconsolata.otf +0 -0
  21. data/manual/resources/images/arrow_225_small.png +0 -0
  22. data/manual/resources/images/arrow_315_small.png +0 -0
  23. data/manual/resources/images/arrow_skip.png +0 -0
  24. data/manual/resources/images/cc-by.png +0 -0
  25. data/manual/resources/images/dialog-error.png +0 -0
  26. data/manual/resources/images/dialog-information.png +0 -0
  27. data/manual/resources/images/dialog-warning.png +0 -0
  28. data/manual/resources/images/emblem-important.png +0 -0
  29. data/manual/resources/images/help.png +0 -0
  30. data/manual/resources/images/information.png +0 -0
  31. data/manual/resources/images/magnifier.png +0 -0
  32. data/manual/resources/images/magnifier_left.png +0 -0
  33. data/manual/resources/images/page_white_code.png +0 -0
  34. data/manual/resources/images/page_white_copy.png +0 -0
  35. data/manual/resources/images/printer.png +0 -0
  36. data/manual/resources/images/question.png +0 -0
  37. data/manual/resources/images/scripts_code.png +0 -0
  38. data/manual/resources/images/wrap.png +0 -0
  39. data/manual/resources/images/wrapping.png +0 -0
  40. data/manual/resources/js/jquery-1.4.4.min.js +0 -167
  41. data/manual/resources/js/manual.js +0 -30
  42. data/manual/resources/js/sh.js +0 -580
  43. data/manual/resources/swf/clipboard.swf +0 -0
  44. data/manual/src/examples.page +0 -154
  45. data/manual/src/gettingstarted.page +0 -64
  46. data/manual/src/index.page +0 -97
  47. data/manual/src/tags.page +0 -501
  48. data/manual/src/templates.page +0 -74
@@ -1,74 +0,0 @@
1
- ---
2
- # vim: set et nosta sw=4 ts=4 ft=textile :
3
- title: Templates
4
- layout: default
5
- index: 1
6
- filters:
7
- - erb
8
- - links
9
- - api
10
- - examples
11
- - textile
12
- ---
13
-
14
- h2. <%= page.config['title'] %>
15
-
16
- <div id="auto-toc"></div>
17
-
18
- Inversion <?api "templates":Inversion::Template ?> are the primary objects you'll be interacting with. Templates can be created from a string via <?api "Template#new":Inversion::Template.new ?>, or from a file with <?api "Template#load":Inversion::Template.load ?>.
19
-
20
- h3(#options). Template Options
21
-
22
- You can set Inversion's configuration options in a number of ways.
23
-
24
- To set global options, Inversion supports the "Configurability":https://bitbucket.org/ged/configurability API, and registers itself with the @templates@ key. This means you can either add a 'templates' section to your Configurability config, or call <?api Inversion::Template.configure ?> yourself with an object that can be passed to @Hash#merge@.
25
-
26
- To set options on a per-template basis, you can pass an options hash to either @.load@ or @.new@, or set them from within the template itself using the <?link "configure tag":Tags#configure-tag ?>.
27
-
28
- The available options are:
29
-
30
- <notextile>
31
- <dl>
32
- <dt>:ignore_unknown_tags</dt>
33
- <dd>Setting to false causes unknown tags used in templates to raise an <code>Inversion::ParseError</code>.</dd>
34
- <dd class="default">Default: true</dd>
35
-
36
- <dt>:on_render_error</dt>
37
- <dd>
38
- Dictates the behavior of exceptions during rendering.
39
- <dl>
40
- <dt>:ignore</dt>
41
- <dd>Exceptions are silently ignored.</dd>
42
- <dt>:comment</dt>
43
- <dd>Exceptions are rendered inline as comments.</dd>
44
- <dt>:propagate</dt>
45
- <dd>Exceptions bubble up to the caller of #render.</dd>
46
- </dl>
47
- </dd>
48
- <dd class="default">Default: <code>:comment</code></dd>
49
-
50
- <dt>:debugging_comments</dt>
51
- <dd>Insert various Inversion parse and render statements while rendering.</dd>
52
- <dd class="default">Default: <code>false</code></dd>
53
-
54
- <dt>:comment_start</dt>
55
- <dd>When rendering debugging comments, the comment is started with these characters.</dd>
56
- <dd class="default">Default: <code>"&lt;!--"</code></dd>
57
-
58
- <dt>:comment_end</dt>
59
- <dd>When rendering debugging comments, the comment is finished with these characters.</dd>
60
- <dd class="default">Default: <code>"--&gt;"</code></dd>
61
-
62
- <dt>:template_paths</dt>
63
- <dd>An array of filesystem paths to search for templates within, when loaded or included with a relative path. The current working directory is always the last checked member of this.</dd>
64
- <dd class="default">Default: <code>[]</code></dd>
65
-
66
- <dt>:escape_format</dt>
67
- <dd>The escaping <?api "strategy":Inversion::Escaping ?> used by tags such as <code>escape</code> and <code>pp</code>.</dd>
68
- <dd class="default">Default: <code>:html</code></dd>
69
-
70
- <dt>:strip_tag_lines</dt>
71
- <dd>If a tag's presence introduces a blank line into the output, this option removes it.</dd>
72
- <dd class="default">Default: <code>true</code></dd>
73
- </dl>
74
- </notextile>