tilt 2.0.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +5 -5
  2. data/COPYING +2 -1
  3. data/bin/tilt +2 -110
  4. data/lib/tilt/_emacs_org.rb +2 -0
  5. data/lib/tilt/_handlebars.rb +2 -0
  6. data/lib/tilt/_jbuilder.rb +2 -0
  7. data/lib/tilt/_org.rb +2 -0
  8. data/lib/tilt/asciidoc.rb +11 -23
  9. data/lib/tilt/babel.rb +8 -0
  10. data/lib/tilt/builder.rb +23 -14
  11. data/lib/tilt/cli.rb +134 -0
  12. data/lib/tilt/coffee.rb +17 -25
  13. data/lib/tilt/commonmarker.rb +95 -0
  14. data/lib/tilt/creole.rb +9 -20
  15. data/lib/tilt/csv.rb +9 -21
  16. data/lib/tilt/erb.rb +27 -19
  17. data/lib/tilt/erubi.rb +55 -0
  18. data/lib/tilt/erubis.rb +20 -12
  19. data/lib/tilt/etanni.rb +5 -4
  20. data/lib/tilt/haml.rb +79 -42
  21. data/lib/tilt/kramdown.rb +8 -28
  22. data/lib/tilt/liquid.rb +11 -9
  23. data/lib/tilt/livescript.rb +11 -0
  24. data/lib/tilt/mapping.rb +242 -95
  25. data/lib/tilt/markaby.rb +5 -7
  26. data/lib/tilt/maruku.rb +6 -18
  27. data/lib/tilt/nokogiri.rb +11 -10
  28. data/lib/tilt/pandoc.rb +39 -0
  29. data/lib/tilt/pipeline.rb +19 -0
  30. data/lib/tilt/plain.rb +4 -19
  31. data/lib/tilt/prawn.rb +28 -0
  32. data/lib/tilt/radius.rb +15 -22
  33. data/lib/tilt/rdiscount.rb +17 -33
  34. data/lib/tilt/rdoc.rb +14 -35
  35. data/lib/tilt/redcarpet.rb +20 -93
  36. data/lib/tilt/redcloth.rb +9 -19
  37. data/lib/tilt/rst-pandoc.rb +10 -0
  38. data/lib/tilt/sass.rb +59 -22
  39. data/lib/tilt/slim.rb +5 -0
  40. data/lib/tilt/string.rb +9 -3
  41. data/lib/tilt/template.rb +246 -78
  42. data/lib/tilt/typescript.rb +19 -0
  43. data/lib/tilt/wikicloth.rb +8 -18
  44. data/lib/tilt/yajl.rb +5 -11
  45. data/lib/tilt.rb +91 -41
  46. metadata +39 -102
  47. data/CHANGELOG.md +0 -61
  48. data/Gemfile +0 -39
  49. data/HACKING +0 -16
  50. data/README.md +0 -206
  51. data/Rakefile +0 -95
  52. data/docs/TEMPLATES.md +0 -523
  53. data/docs/common.css +0 -14
  54. data/lib/tilt/bluecloth.rb +0 -24
  55. data/lib/tilt/less.rb +0 -38
  56. data/test/markaby/locals.mab +0 -1
  57. data/test/markaby/markaby.mab +0 -1
  58. data/test/markaby/markaby_other_static.mab +0 -1
  59. data/test/markaby/render_twice.mab +0 -1
  60. data/test/markaby/scope.mab +0 -1
  61. data/test/markaby/yielding.mab +0 -2
  62. data/test/test_helper.rb +0 -64
  63. data/test/tilt_asciidoctor_test.rb +0 -44
  64. data/test/tilt_blueclothtemplate_test.rb +0 -33
  65. data/test/tilt_buildertemplate_test.rb +0 -59
  66. data/test/tilt_cache_test.rb +0 -32
  67. data/test/tilt_coffeescripttemplate_test.rb +0 -104
  68. data/test/tilt_compilesite_test.rb +0 -51
  69. data/test/tilt_creoletemplate_test.rb +0 -24
  70. data/test/tilt_csv_test.rb +0 -65
  71. data/test/tilt_erbtemplate_test.rb +0 -239
  72. data/test/tilt_erubistemplate_test.rb +0 -151
  73. data/test/tilt_etannitemplate_test.rb +0 -174
  74. data/test/tilt_hamltemplate_test.rb +0 -144
  75. data/test/tilt_kramdown_test.rb +0 -20
  76. data/test/tilt_lesstemplate_test.less +0 -1
  77. data/test/tilt_lesstemplate_test.rb +0 -42
  78. data/test/tilt_liquidtemplate_test.rb +0 -78
  79. data/test/tilt_mapping_test.rb +0 -229
  80. data/test/tilt_markaby_test.rb +0 -88
  81. data/test/tilt_markdown_test.rb +0 -174
  82. data/test/tilt_marukutemplate_test.rb +0 -36
  83. data/test/tilt_metadata_test.rb +0 -42
  84. data/test/tilt_nokogiritemplate_test.rb +0 -87
  85. data/test/tilt_radiustemplate_test.rb +0 -75
  86. data/test/tilt_rdiscounttemplate_test.rb +0 -43
  87. data/test/tilt_rdoctemplate_test.rb +0 -29
  88. data/test/tilt_redcarpettemplate_test.rb +0 -59
  89. data/test/tilt_redclothtemplate_test.rb +0 -36
  90. data/test/tilt_sasstemplate_test.rb +0 -41
  91. data/test/tilt_stringtemplate_test.rb +0 -171
  92. data/test/tilt_template_test.rb +0 -316
  93. data/test/tilt_test.rb +0 -60
  94. data/test/tilt_wikiclothtemplate_test.rb +0 -32
  95. data/test/tilt_yajltemplate_test.rb +0 -101
  96. data/tilt.gemspec +0 -107
data/lib/tilt.rb CHANGED
@@ -1,73 +1,93 @@
1
- require 'tilt/mapping'
2
- require 'tilt/template'
1
+ # frozen_string_literal: true
2
+ require_relative 'tilt/mapping'
3
+ require_relative 'tilt/template'
3
4
 
4
5
  # Namespace for Tilt. This module is not intended to be included anywhere.
5
6
  module Tilt
6
7
  # Current version.
7
- VERSION = '2.0.0'
8
+ VERSION = '2.4.0'
9
+
10
+ EMPTY_HASH = {}.freeze
11
+ private_constant :EMPTY_HASH
8
12
 
9
13
  @default_mapping = Mapping.new
10
14
 
11
- # @return [Tilt::Mapping] the main mapping object
12
- def self.default_mapping
13
- @default_mapping
15
+ # Replace the default mapping with a finalized version of the default
16
+ # mapping. This can be done to improve performance after the template
17
+ # libraries you desire to use have already been loaded. Once this is
18
+ # is called, all attempts to modify the default mapping will fail.
19
+ # This also freezes Tilt itself.
20
+ def self.finalize!
21
+ return self if @default_mapping.is_a?(FinalizedMapping)
22
+
23
+ class << self
24
+ prepend(Module.new do
25
+ def lazy_map(*)
26
+ raise "Tilt.#{__callee__} not supported after Tilt.finalize! has been called"
27
+ end
28
+ alias register lazy_map
29
+ alias register_lazy lazy_map
30
+ alias register_pipeline lazy_map
31
+ alias prefer lazy_map
32
+ end)
33
+ end
34
+
35
+ @default_mapping = @default_mapping.finalized
36
+
37
+ freeze
14
38
  end
15
39
 
16
40
  # @private
17
41
  def self.lazy_map
18
- default_mapping.lazy_map
42
+ @default_mapping.lazy_map
19
43
  end
20
44
 
21
45
  # @see Tilt::Mapping#register
22
46
  def self.register(template_class, *extensions)
23
- default_mapping.register(template_class, *extensions)
47
+ @default_mapping.register(template_class, *extensions)
24
48
  end
25
49
 
26
50
  # @see Tilt::Mapping#register_lazy
27
51
  def self.register_lazy(class_name, file, *extensions)
28
- default_mapping.register_lazy(class_name, file, *extensions)
52
+ @default_mapping.register_lazy(class_name, file, *extensions)
29
53
  end
30
54
 
31
- # @deprecated Use {register} instead.
32
- def self.prefer(template_class, *extensions)
33
- register(template_class, *extensions)
55
+ # @see Tilt::Mapping#register_pipeline
56
+ def self.register_pipeline(ext, options=EMPTY_HASH)
57
+ @default_mapping.register_pipeline(ext, options)
34
58
  end
35
59
 
36
60
  # @see Tilt::Mapping#registered?
37
61
  def self.registered?(ext)
38
- default_mapping.registered?(ext)
62
+ @default_mapping.registered?(ext)
39
63
  end
40
64
 
41
65
  # @see Tilt::Mapping#new
42
- def self.new(file, line=nil, options={}, &block)
43
- default_mapping.new(file, line, options, &block)
66
+ def self.new(file, line=nil, options=nil, &block)
67
+ @default_mapping.new(file, line, options, &block)
44
68
  end
45
69
 
46
70
  # @see Tilt::Mapping#[]
47
71
  def self.[](file)
48
- default_mapping[file]
72
+ @default_mapping[file]
49
73
  end
50
74
 
51
75
  # @see Tilt::Mapping#template_for
52
76
  def self.template_for(file)
53
- default_mapping.template_for(file)
77
+ @default_mapping.template_for(file)
54
78
  end
55
79
 
56
80
  # @see Tilt::Mapping#templates_for
57
81
  def self.templates_for(file)
58
- default_mapping.templates_for(file)
82
+ @default_mapping.templates_for(file)
59
83
  end
60
84
 
61
- # @return the template object that is currently rendering.
62
- #
63
- # @example
64
- # tmpl = Tilt['index.erb'].new { '<%= Tilt.current_template %>' }
65
- # tmpl.render == tmpl.to_s
66
- #
67
- # @note This is currently an experimental feature and might return nil
68
- # in the future.
69
- def self.current_template
70
- Thread.current[:tilt_current_template]
85
+ class << self
86
+ # @return [Tilt::Mapping] the main mapping object
87
+ attr_reader :default_mapping
88
+
89
+ # Alias register as prefer for Tilt 1.x compatibility.
90
+ alias prefer register
71
91
  end
72
92
 
73
93
  # Extremely simple template cache implementation. Calling applications
@@ -78,14 +98,31 @@ module Tilt
78
98
  # cache.fetch(path, line, options) { Tilt.new(path, line, options) }
79
99
  #
80
100
  # Subsequent invocations return the already loaded template object.
101
+ #
102
+ # @note
103
+ # Tilt::Cache is a thin wrapper around Hash. It has the following
104
+ # limitations:
105
+ # * Not thread-safe.
106
+ # * Size is unbounded.
107
+ # * Keys are not copied defensively, and should not be modified after
108
+ # being passed to #fetch. More specifically, the values returned by
109
+ # key#hash and key#eql? should not change.
110
+ # If this is too limiting for you, use a different cache implementation.
81
111
  class Cache
82
112
  def initialize
83
113
  @cache = {}
84
114
  end
85
115
 
86
- # @see Cache
116
+ # Caches a value for key, or returns the previously cached value.
117
+ # If a value has been previously cached for key then it is
118
+ # returned. Otherwise, block is yielded to and its return value
119
+ # which may be nil, is cached under key and returned.
120
+ # @yield
121
+ # @yieldreturn the value to cache for key
87
122
  def fetch(*key)
88
- @cache[key] ||= yield
123
+ @cache.fetch(key) do
124
+ @cache[key] = yield
125
+ end
89
126
  end
90
127
 
91
128
  # Clears the cache.
@@ -93,45 +130,58 @@ module Tilt
93
130
  @cache = {}
94
131
  end
95
132
  end
96
-
133
+ # :nocov:
134
+ # TILT3: Remove Tilt::Cache
135
+ deprecate_constant :Cache if respond_to?(:deprecate_constant, true)
136
+ # :nocov:
97
137
 
98
138
  # Template Implementations ================================================
99
139
 
100
140
  # ERB
101
141
  register_lazy :ERBTemplate, 'tilt/erb', 'erb', 'rhtml'
102
142
  register_lazy :ErubisTemplate, 'tilt/erubis', 'erb', 'rhtml', 'erubis'
143
+ register_lazy :ErubiTemplate, 'tilt/erubi', 'erb', 'rhtml', 'erubi'
103
144
 
104
145
  # Markdown
105
- register_lazy :BlueClothTemplate, 'tilt/bluecloth', 'markdown', 'mkd', 'md'
106
- register_lazy :MarukuTemplate, 'tilt/maruku', 'markdown', 'mkd', 'md'
107
- register_lazy :KramdownTemplate, 'tilt/kramdown', 'markdown', 'mkd', 'md'
108
- register_lazy :RDiscountTemplate, 'tilt/rdiscount', 'markdown', 'mkd', 'md'
109
- register_lazy :RedcarpetTemplate, 'tilt/redcarpet', 'markdown', 'mkd', 'md'
146
+ register_lazy :MarukuTemplate, 'tilt/maruku', 'markdown', 'mkd', 'md'
147
+ register_lazy :KramdownTemplate, 'tilt/kramdown', 'markdown', 'mkd', 'md'
148
+ register_lazy :RDiscountTemplate, 'tilt/rdiscount', 'markdown', 'mkd', 'md'
149
+ register_lazy :RedcarpetTemplate, 'tilt/redcarpet', 'markdown', 'mkd', 'md'
150
+ register_lazy :CommonMarkerTemplate, 'tilt/commonmarker', 'markdown', 'mkd', 'md'
151
+ register_lazy :PandocTemplate, 'tilt/pandoc', 'markdown', 'mkd', 'md'
110
152
 
111
153
  # Rest (sorted by name)
112
154
  register_lazy :AsciidoctorTemplate, 'tilt/asciidoc', 'ad', 'adoc', 'asciidoc'
155
+ register_lazy :BabelTemplate, 'tilt/babel', 'es6', 'babel', 'jsx'
113
156
  register_lazy :BuilderTemplate, 'tilt/builder', 'builder'
114
157
  register_lazy :CSVTemplate, 'tilt/csv', 'rcsv'
115
158
  register_lazy :CoffeeScriptTemplate, 'tilt/coffee', 'coffee'
159
+ register_lazy :CoffeeScriptLiterateTemplate, 'tilt/coffee', 'litcoffee'
116
160
  register_lazy :CreoleTemplate, 'tilt/creole', 'wiki', 'creole'
117
161
  register_lazy :EtanniTemplate, 'tilt/etanni', 'etn', 'etanni'
118
162
  register_lazy :HamlTemplate, 'tilt/haml', 'haml'
119
- register_lazy :LessTemplate, 'tilt/less', 'less'
120
163
  register_lazy :LiquidTemplate, 'tilt/liquid', 'liquid'
164
+ register_lazy :LiveScriptTemplate, 'tilt/livescript','ls', 'livescript'
121
165
  register_lazy :MarkabyTemplate, 'tilt/markaby', 'mab'
122
166
  register_lazy :NokogiriTemplate, 'tilt/nokogiri', 'nokogiri'
123
167
  register_lazy :PlainTemplate, 'tilt/plain', 'html'
168
+ register_lazy :PrawnTemplate, 'tilt/prawn', 'prawn'
124
169
  register_lazy :RDocTemplate, 'tilt/rdoc', 'rdoc'
125
170
  register_lazy :RadiusTemplate, 'tilt/radius', 'radius'
126
171
  register_lazy :RedClothTemplate, 'tilt/redcloth', 'textile'
172
+ register_lazy :RstPandocTemplate, 'tilt/rst-pandoc', 'rst'
127
173
  register_lazy :SassTemplate, 'tilt/sass', 'sass'
128
174
  register_lazy :ScssTemplate, 'tilt/sass', 'scss'
175
+ register_lazy :SlimTemplate, 'tilt/slim', 'slim'
129
176
  register_lazy :StringTemplate, 'tilt/string', 'str'
177
+ register_lazy :TypeScriptTemplate, 'tilt/typescript', 'ts', 'tsx'
130
178
  register_lazy :WikiClothTemplate, 'tilt/wikicloth', 'wiki', 'mediawiki', 'mw'
131
179
  register_lazy :YajlTemplate, 'tilt/yajl', 'yajl'
132
180
 
133
- # External template engines
134
- register_lazy 'Slim::Template', 'slim', 'slim'
135
- register_lazy 'Tilt::HandlebarsTemplate', 'tilt/handlebars', 'handlebars', 'hbs'
136
- register_lazy 'Tilt::OrgTemplate', 'org-ruby', 'org'
181
+ # TILT3: Remove
182
+ # Deprecated lazy loading of external template engines
183
+ register_lazy 'Tilt::HandlebarsTemplate', 'tilt/_handlebars', 'handlebars', 'hbs'
184
+ register_lazy 'Tilt::OrgTemplate', 'tilt/_org', 'org'
185
+ register_lazy 'Tilt::OrgTemplate', 'tilt/_emacs_org', 'org'
186
+ register_lazy 'Tilt::JbuilderTemplate', 'tilt/_jbuilder', 'jbuilder'
137
187
  end
metadata CHANGED
@@ -1,162 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
- autorequire:
8
+ - Magnus Holm
9
+ - Jeremy Evans
10
+ autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
13
+ date: 2024-06-27 00:00:00.000000000 Z
12
14
  dependencies: []
13
15
  description: Generic interface to multiple Ruby template engines
14
- email: r@tomayko.com
16
+ email: code@jeremyevans.net
15
17
  executables:
16
18
  - tilt
17
19
  extensions: []
18
20
  extra_rdoc_files: []
19
21
  files:
20
- - CHANGELOG.md
21
22
  - COPYING
22
- - Gemfile
23
- - HACKING
24
- - README.md
25
- - Rakefile
26
23
  - bin/tilt
27
- - docs/TEMPLATES.md
28
- - docs/common.css
29
24
  - lib/tilt.rb
25
+ - lib/tilt/_emacs_org.rb
26
+ - lib/tilt/_handlebars.rb
27
+ - lib/tilt/_jbuilder.rb
28
+ - lib/tilt/_org.rb
30
29
  - lib/tilt/asciidoc.rb
31
- - lib/tilt/bluecloth.rb
30
+ - lib/tilt/babel.rb
32
31
  - lib/tilt/builder.rb
32
+ - lib/tilt/cli.rb
33
33
  - lib/tilt/coffee.rb
34
+ - lib/tilt/commonmarker.rb
34
35
  - lib/tilt/creole.rb
35
36
  - lib/tilt/csv.rb
36
37
  - lib/tilt/erb.rb
38
+ - lib/tilt/erubi.rb
37
39
  - lib/tilt/erubis.rb
38
40
  - lib/tilt/etanni.rb
39
41
  - lib/tilt/haml.rb
40
42
  - lib/tilt/kramdown.rb
41
- - lib/tilt/less.rb
42
43
  - lib/tilt/liquid.rb
44
+ - lib/tilt/livescript.rb
43
45
  - lib/tilt/mapping.rb
44
46
  - lib/tilt/markaby.rb
45
47
  - lib/tilt/maruku.rb
46
48
  - lib/tilt/nokogiri.rb
49
+ - lib/tilt/pandoc.rb
50
+ - lib/tilt/pipeline.rb
47
51
  - lib/tilt/plain.rb
52
+ - lib/tilt/prawn.rb
48
53
  - lib/tilt/radius.rb
49
54
  - lib/tilt/rdiscount.rb
50
55
  - lib/tilt/rdoc.rb
51
56
  - lib/tilt/redcarpet.rb
52
57
  - lib/tilt/redcloth.rb
58
+ - lib/tilt/rst-pandoc.rb
53
59
  - lib/tilt/sass.rb
60
+ - lib/tilt/slim.rb
54
61
  - lib/tilt/string.rb
55
62
  - lib/tilt/template.rb
63
+ - lib/tilt/typescript.rb
56
64
  - lib/tilt/wikicloth.rb
57
65
  - lib/tilt/yajl.rb
58
- - test/markaby/locals.mab
59
- - test/markaby/markaby.mab
60
- - test/markaby/markaby_other_static.mab
61
- - test/markaby/render_twice.mab
62
- - test/markaby/scope.mab
63
- - test/markaby/yielding.mab
64
- - test/test_helper.rb
65
- - test/tilt_asciidoctor_test.rb
66
- - test/tilt_blueclothtemplate_test.rb
67
- - test/tilt_buildertemplate_test.rb
68
- - test/tilt_cache_test.rb
69
- - test/tilt_coffeescripttemplate_test.rb
70
- - test/tilt_compilesite_test.rb
71
- - test/tilt_creoletemplate_test.rb
72
- - test/tilt_csv_test.rb
73
- - test/tilt_erbtemplate_test.rb
74
- - test/tilt_erubistemplate_test.rb
75
- - test/tilt_etannitemplate_test.rb
76
- - test/tilt_hamltemplate_test.rb
77
- - test/tilt_kramdown_test.rb
78
- - test/tilt_lesstemplate_test.less
79
- - test/tilt_lesstemplate_test.rb
80
- - test/tilt_liquidtemplate_test.rb
81
- - test/tilt_mapping_test.rb
82
- - test/tilt_markaby_test.rb
83
- - test/tilt_markdown_test.rb
84
- - test/tilt_marukutemplate_test.rb
85
- - test/tilt_metadata_test.rb
86
- - test/tilt_nokogiritemplate_test.rb
87
- - test/tilt_radiustemplate_test.rb
88
- - test/tilt_rdiscounttemplate_test.rb
89
- - test/tilt_rdoctemplate_test.rb
90
- - test/tilt_redcarpettemplate_test.rb
91
- - test/tilt_redclothtemplate_test.rb
92
- - test/tilt_sasstemplate_test.rb
93
- - test/tilt_stringtemplate_test.rb
94
- - test/tilt_template_test.rb
95
- - test/tilt_test.rb
96
- - test/tilt_wikiclothtemplate_test.rb
97
- - test/tilt_yajltemplate_test.rb
98
- - tilt.gemspec
99
- homepage: http://github.com/rtomayko/tilt/
66
+ homepage: https://github.com/jeremyevans/tilt
100
67
  licenses:
101
68
  - MIT
102
- metadata: {}
103
- post_install_message:
69
+ metadata:
70
+ bug_tracker_uri: https://github.com/jeremyevans/tilt/issues
71
+ changelog_uri: https://github.com/jeremyevans/tilt/blob/master/CHANGELOG.md
72
+ mailing_list_uri: https://github.com/jeremyevans/tilt/discussions
73
+ source_code_uri: https://github.com/jeremyevans/tilt
74
+ post_install_message:
104
75
  rdoc_options:
105
- - --line-numbers
106
- - --inline-source
107
- - --title
76
+ - "--line-numbers"
77
+ - "--inline-source"
78
+ - "--title"
108
79
  - Tilt
109
- - --main
80
+ - "--main"
110
81
  - Tilt
111
82
  require_paths:
112
83
  - lib
113
84
  required_ruby_version: !ruby/object:Gem::Requirement
114
85
  requirements:
115
- - - '>='
86
+ - - ">="
116
87
  - !ruby/object:Gem::Version
117
- version: '0'
88
+ version: '2.0'
118
89
  required_rubygems_version: !ruby/object:Gem::Requirement
119
90
  requirements:
120
- - - '>='
91
+ - - ">="
121
92
  - !ruby/object:Gem::Version
122
93
  version: '0'
123
94
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.0.3
126
- signing_key:
127
- specification_version: 2
95
+ rubygems_version: 3.5.9
96
+ signing_key:
97
+ specification_version: 4
128
98
  summary: Generic interface to multiple Ruby template engines
129
- test_files:
130
- - test/tilt_asciidoctor_test.rb
131
- - test/tilt_blueclothtemplate_test.rb
132
- - test/tilt_buildertemplate_test.rb
133
- - test/tilt_cache_test.rb
134
- - test/tilt_coffeescripttemplate_test.rb
135
- - test/tilt_compilesite_test.rb
136
- - test/tilt_creoletemplate_test.rb
137
- - test/tilt_csv_test.rb
138
- - test/tilt_erbtemplate_test.rb
139
- - test/tilt_erubistemplate_test.rb
140
- - test/tilt_etannitemplate_test.rb
141
- - test/tilt_hamltemplate_test.rb
142
- - test/tilt_kramdown_test.rb
143
- - test/tilt_lesstemplate_test.rb
144
- - test/tilt_liquidtemplate_test.rb
145
- - test/tilt_mapping_test.rb
146
- - test/tilt_markaby_test.rb
147
- - test/tilt_markdown_test.rb
148
- - test/tilt_marukutemplate_test.rb
149
- - test/tilt_metadata_test.rb
150
- - test/tilt_nokogiritemplate_test.rb
151
- - test/tilt_radiustemplate_test.rb
152
- - test/tilt_rdiscounttemplate_test.rb
153
- - test/tilt_rdoctemplate_test.rb
154
- - test/tilt_redcarpettemplate_test.rb
155
- - test/tilt_redclothtemplate_test.rb
156
- - test/tilt_sasstemplate_test.rb
157
- - test/tilt_stringtemplate_test.rb
158
- - test/tilt_template_test.rb
159
- - test/tilt_test.rb
160
- - test/tilt_wikiclothtemplate_test.rb
161
- - test/tilt_yajltemplate_test.rb
162
- has_rdoc:
99
+ test_files: []
data/CHANGELOG.md DELETED
@@ -1,61 +0,0 @@
1
- ## master
2
-
3
- * Add Handlebars as external template engine (#204, judofyr, jimothyGator)
4
- * Add org-ruby as external template engine (#207, judofyr, minad)
5
- * Documentation typo (#208, elgalu)
6
-
7
- ## 2.0.0.beta1 (2013-07-16)
8
-
9
- * Documentation typo (#202, chip)
10
- * Use YARD for documentation (#189, judofyr)
11
- * Add Slim as an external template engine (judofyr)
12
- * Add Tilt.templates_for (#121, judofyr)
13
- * Add Tilt.current_template (#151, judofyr)
14
- * Avoid loading all files in tilt.rb (#160, #187, judofyr)
15
- * Implement lazily required templates classes (#178, #187, judofyr)
16
- * Move #allows_script and default_mime_type to metadata (#187, judofyr)
17
- * Introduce Tilt::Mapping (#187, judofyr)
18
- * Make template compilation thread-safe (#191, judofyr)
19
-
20
- ## 1.4.1 (2013-05-08)
21
-
22
- * Support Arrays in pre/postambles (#193, jbwiv)
23
-
24
- ## 1.4.0 (2013-05-01)
25
-
26
- * Better encoding support
27
-
28
- ## 1.3.7 (2013-04-09)
29
-
30
- * Erubis: Check for the correct constant (#183, mattwildig)
31
- * Don't fail when BasicObject is defined in 1.8 (#182, technobrat, judofyr)
32
-
33
- ## 1.3.6 (2013-03-17)
34
-
35
- * Accept Hash that implements #path as options (#180, lawso017)
36
- * Changed extension for CsvTemplate from '.csv' to '.rcsv' (#177, alexgb)
37
-
38
- ## 1.3.5 (2013-03-06)
39
-
40
- * Fixed extension for PlainTemplate (judofyr)
41
- * Improved local variables regexp (#174, razorinc)
42
- * Added CHANGELOG.md
43
-
44
- ## 1.3.4 (2013-02-28)
45
-
46
- * Support RDoc 4.0 (#168, judofyr)
47
- * Add mention of Org-Mode support (#165, aslakknutsen)
48
- * Add AsciiDoctorTemplate (#163, #164, aslakknutsen)
49
- * Add PlainTextTemplate (nathanaeljones)
50
- * Restrict locals to valid variable names (#158, thinkerbot)
51
- * ERB: Improve trim mode support (#156, ssimeonov)
52
- * Add CSVTemplate (#153, alexgb)
53
- * Remove special case for 1.9.1 (#147, guilleiguaran)
54
- * Add allows\_script? method to Template (#143, bhollis)
55
- * Default to using Redcarpet2 (#139, DAddYE)
56
- * Allow File/Tempfile as filenames (#134, jamesotron)
57
- * Add EtanniTemplate (#131, manveru)
58
- * Support RDoc 3.10 (#112, timfel)
59
- * Always compile templates; remove old source evaluator (rtomayko)
60
- * Less: Options are now being passed to the parser (#106, cowboyd)
61
-
data/Gemfile DELETED
@@ -1,39 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem 'yard', '~> 0.8.6'
4
- gem 'minitest', '~> 5.0'
5
-
6
- gem 'rake'
7
-
8
- group :engines do
9
- gem 'asciidoctor', '>= 0.1.0'
10
- gem 'builder'
11
- gem 'coffee-script'
12
- gem 'contest'
13
- gem 'creole'
14
- gem 'erubis'
15
- gem 'haml', '>= 2.2.11', '< 4'
16
- gem 'kramdown'
17
- gem 'less'
18
- gem 'liquid'
19
- gem 'markaby'
20
- gem 'maruku'
21
- gem 'nokogiri' if RUBY_VERSION > '1.9.2'
22
- gem 'radius'
23
- gem 'sass'
24
- gem 'wikicloth'
25
- gem 'rdoc', (ENV['RDOC_VERSION'] || '> 0')
26
-
27
- platform :ruby do
28
- gem 'yajl-ruby'
29
- gem 'redcarpet' if RUBY_VERSION > '1.8.7'
30
- gem 'rdiscount', '>= 2.1.6' if RUBY_VERSION != '1.9.2'
31
- gem 'RedCloth'
32
- end
33
-
34
- platform :mri do
35
- gem 'therubyracer'
36
- gem 'bluecloth' if ENV['BLUECLOTH']
37
- end
38
- end
39
-
data/HACKING DELETED
@@ -1,16 +0,0 @@
1
- Clone:
2
-
3
- git clone git://github.com/rtomayko/tilt.git
4
- cd tilt
5
-
6
- Install needed packages under ./vendor and run tests (requires bundler):
7
-
8
- rake
9
-
10
- Run tests under your current gem environment. Do not install anything:
11
-
12
- rake test
13
-
14
- Only install needed packages under ./vendor:
15
-
16
- rake setup