mustache 0.5.0 → 0.6.0

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 (52) hide show
  1. data/README.md +30 -179
  2. data/Rakefile +87 -46
  3. data/bin/mustache +10 -19
  4. data/lib/mustache/context.rb +55 -12
  5. data/lib/mustache/sinatra.rb +1 -1
  6. data/lib/mustache/template.rb +3 -15
  7. data/lib/mustache/version.rb +1 -1
  8. data/man/mustache.1 +138 -0
  9. data/man/mustache.1.html +168 -0
  10. data/man/mustache.1.ron +94 -0
  11. data/man/mustache.5 +364 -0
  12. data/man/mustache.5.html +300 -0
  13. data/man/mustache.5.ron +220 -0
  14. data/test/helper.rb +1 -0
  15. data/test/mustache_test.rb +25 -16
  16. metadata +32 -65
  17. data/.gitignore +0 -1
  18. data/.kick +0 -26
  19. data/CONTRIBUTORS +0 -6
  20. data/HISTORY.md +0 -70
  21. data/benchmarks/complex.erb +0 -15
  22. data/benchmarks/complex.haml +0 -10
  23. data/benchmarks/helper.rb +0 -20
  24. data/benchmarks/simple.erb +0 -5
  25. data/benchmarks/speed.rb +0 -76
  26. data/contrib/mustache.vim +0 -69
  27. data/contrib/tpl-mode.el +0 -274
  28. data/examples/comments.mustache +0 -1
  29. data/examples/comments.rb +0 -14
  30. data/examples/complex_view.mustache +0 -16
  31. data/examples/complex_view.rb +0 -34
  32. data/examples/delimiters.mustache +0 -6
  33. data/examples/delimiters.rb +0 -22
  34. data/examples/double_section.mustache +0 -7
  35. data/examples/double_section.rb +0 -14
  36. data/examples/escaped.mustache +0 -1
  37. data/examples/escaped.rb +0 -14
  38. data/examples/inner_partial.mustache +0 -1
  39. data/examples/inner_partial.txt +0 -1
  40. data/examples/namespaced.mustache +0 -1
  41. data/examples/namespaced.rb +0 -25
  42. data/examples/partial_with_module.mustache +0 -3
  43. data/examples/partial_with_module.rb +0 -37
  44. data/examples/passenger.conf +0 -5
  45. data/examples/passenger.rb +0 -27
  46. data/examples/simple.mustache +0 -5
  47. data/examples/simple.rb +0 -26
  48. data/examples/template_partial.mustache +0 -2
  49. data/examples/template_partial.rb +0 -18
  50. data/examples/template_partial.txt +0 -4
  51. data/examples/unescaped.mustache +0 -1
  52. data/examples/unescaped.rb +0 -14
@@ -1,14 +0,0 @@
1
- $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
2
- require 'mustache'
3
-
4
- class Unescaped < Mustache
5
- self.path = File.dirname(__FILE__)
6
-
7
- def title
8
- "Bear > Shark"
9
- end
10
- end
11
-
12
- if $0 == __FILE__
13
- puts Unescaped.to_html
14
- end