tilt 2.0.8 → 2.0.11
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.
- checksums.yaml +5 -5
- data/lib/tilt/commonmarker.rb +68 -1
- data/lib/tilt/csv.rb +1 -1
- data/lib/tilt/erb.rb +7 -1
- data/lib/tilt/haml.rb +2 -2
- data/lib/tilt/pandoc.rb +23 -15
- data/lib/tilt/redcarpet.rb +5 -2
- data/lib/tilt/rst-pandoc.rb +12 -7
- data/lib/tilt/sass.rb +40 -3
- data/lib/tilt/template.rb +18 -12
- data/lib/tilt.rb +2 -1
- metadata +8 -110
- data/CHANGELOG.md +0 -127
- data/Gemfile +0 -65
- data/HACKING +0 -16
- data/README.md +0 -233
- data/Rakefile +0 -106
- data/docs/TEMPLATES.md +0 -555
- data/docs/common.css +0 -14
- data/man/index.txt +0 -2
- data/man/tilt.1.ronn +0 -59
- data/test/markaby/locals.mab +0 -1
- data/test/markaby/markaby.mab +0 -1
- data/test/markaby/markaby_other_static.mab +0 -1
- data/test/markaby/render_twice.mab +0 -1
- data/test/markaby/scope.mab +0 -1
- data/test/markaby/yielding.mab +0 -2
- data/test/mytemplate.rb +0 -2
- data/test/test_helper.rb +0 -64
- data/test/tilt_asciidoctor_test.rb +0 -50
- data/test/tilt_babeltemplate.rb +0 -33
- data/test/tilt_blueclothtemplate_test.rb +0 -33
- data/test/tilt_buildertemplate_test.rb +0 -72
- data/test/tilt_cache_test.rb +0 -43
- data/test/tilt_coffeescripttemplate_test.rb +0 -141
- data/test/tilt_commonmarkertemplate_test.rb +0 -20
- data/test/tilt_compilesite_test.rb +0 -51
- data/test/tilt_creoletemplate_test.rb +0 -24
- data/test/tilt_csv_test.rb +0 -77
- data/test/tilt_erbtemplate_test.rb +0 -239
- data/test/tilt_erubistemplate_test.rb +0 -151
- data/test/tilt_erubitemplate_test.rb +0 -158
- data/test/tilt_etannitemplate_test.rb +0 -174
- data/test/tilt_hamltemplate_test.rb +0 -166
- data/test/tilt_kramdown_test.rb +0 -20
- data/test/tilt_lesstemplate_test.less +0 -1
- data/test/tilt_lesstemplate_test.rb +0 -42
- data/test/tilt_liquidtemplate_test.rb +0 -87
- data/test/tilt_livescripttemplate_test.rb +0 -37
- data/test/tilt_mapping_test.rb +0 -232
- data/test/tilt_markaby_test.rb +0 -88
- data/test/tilt_markdown_test.rb +0 -186
- data/test/tilt_marukutemplate_test.rb +0 -36
- data/test/tilt_metadata_test.rb +0 -42
- data/test/tilt_nokogiritemplate_test.rb +0 -87
- data/test/tilt_pandoctemplate_test.rb +0 -67
- data/test/tilt_prawntemplate.prawn +0 -1
- data/test/tilt_prawntemplate_test.rb +0 -75
- data/test/tilt_radiustemplate_test.rb +0 -75
- data/test/tilt_rdiscounttemplate_test.rb +0 -43
- data/test/tilt_rdoctemplate_test.rb +0 -29
- data/test/tilt_redcarpettemplate_test.rb +0 -54
- data/test/tilt_redclothtemplate_test.rb +0 -36
- data/test/tilt_rstpandoctemplate_test.rb +0 -32
- data/test/tilt_sasstemplate_test.rb +0 -41
- data/test/tilt_sigil_test.rb +0 -41
- data/test/tilt_stringtemplate_test.rb +0 -171
- data/test/tilt_template_test.rb +0 -314
- data/test/tilt_test.rb +0 -60
- data/test/tilt_typescript_test.rb +0 -38
- data/test/tilt_wikiclothtemplate_test.rb +0 -32
- data/test/tilt_yajltemplate_test.rb +0 -101
- data/tilt.gemspec +0 -130
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a552c8551a7093b787234c00bac7ccaaef77e89b1d4835c31ddbaeb8388c74ae
|
4
|
+
data.tar.gz: 014cff88cd5ec4157d02127576eb788a6b0ae3795e69dc448781093f59153769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d9da743f0359f10e8486b946132d39ba892482a99e7961c4a62258a680a214030824e92442db2421f35cac7c4378ff3e8e8e0af72bd8af35150aae2cc58555b
|
7
|
+
data.tar.gz: 2755a44a43e094eb95bffe6ab095f4d8a6cc1b58d1c96d6c20325d8d607ada32da7529758dfed8f8d8f09a3eafe2c7d96f381c314c7cc99f950a36c5eaff3454
|
data/lib/tilt/commonmarker.rb
CHANGED
@@ -5,13 +5,80 @@ module Tilt
|
|
5
5
|
class CommonMarkerTemplate < Template
|
6
6
|
self.default_mime_type = 'text/html'
|
7
7
|
|
8
|
+
OPTION_ALIAS = {
|
9
|
+
:smartypants => :SMART
|
10
|
+
}
|
11
|
+
PARSE_OPTIONS = [
|
12
|
+
:FOOTNOTES,
|
13
|
+
:LIBERAL_HTML_TAG,
|
14
|
+
:SMART,
|
15
|
+
:smartypants,
|
16
|
+
:STRIKETHROUGH_DOUBLE_TILDE,
|
17
|
+
:UNSAFE,
|
18
|
+
:VALIDATE_UTF8,
|
19
|
+
].freeze
|
20
|
+
RENDER_OPTIONS = [
|
21
|
+
:FOOTNOTES,
|
22
|
+
:FULL_INFO_STRING,
|
23
|
+
:GITHUB_PRE_LANG,
|
24
|
+
:HARDBREAKS,
|
25
|
+
:NOBREAKS,
|
26
|
+
:SAFE, # Removed in v0.18.0 (2018-10-17)
|
27
|
+
:SOURCEPOS,
|
28
|
+
:TABLE_PREFER_STYLE_ATTRIBUTES,
|
29
|
+
:UNSAFE,
|
30
|
+
].freeze
|
31
|
+
EXTENSIONS = [
|
32
|
+
:autolink,
|
33
|
+
:strikethrough,
|
34
|
+
:table,
|
35
|
+
:tagfilter,
|
36
|
+
:tasklist,
|
37
|
+
].freeze
|
38
|
+
|
39
|
+
def extensions
|
40
|
+
EXTENSIONS.select do |extension|
|
41
|
+
options[extension]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def parse_options
|
46
|
+
raw_options = PARSE_OPTIONS.select do |option|
|
47
|
+
options[option]
|
48
|
+
end
|
49
|
+
actual_options = raw_options.map do |option|
|
50
|
+
OPTION_ALIAS[option] || option
|
51
|
+
end
|
52
|
+
|
53
|
+
if actual_options.any?
|
54
|
+
actual_options
|
55
|
+
else
|
56
|
+
:DEFAULT
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def render_options
|
61
|
+
raw_options = RENDER_OPTIONS.select do |option|
|
62
|
+
options[option]
|
63
|
+
end
|
64
|
+
actual_options = raw_options.map do |option|
|
65
|
+
OPTION_ALIAS[option] || option
|
66
|
+
end
|
67
|
+
if actual_options.any?
|
68
|
+
actual_options
|
69
|
+
else
|
70
|
+
:DEFAULT
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
8
74
|
def prepare
|
9
75
|
@engine = nil
|
10
76
|
@output = nil
|
11
77
|
end
|
12
78
|
|
13
79
|
def evaluate(scope, locals, &block)
|
14
|
-
CommonMarker.
|
80
|
+
doc = CommonMarker.render_doc(data, parse_options, extensions)
|
81
|
+
doc.to_html(render_options, extensions)
|
15
82
|
end
|
16
83
|
|
17
84
|
def allows_script?
|
data/lib/tilt/csv.rb
CHANGED
data/lib/tilt/erb.rb
CHANGED
@@ -7,6 +7,8 @@ module Tilt
|
|
7
7
|
class ERBTemplate < Template
|
8
8
|
@@default_output_variable = '_erbout'
|
9
9
|
|
10
|
+
SUPPORTS_KVARGS = ::ERB.instance_method(:initialize).parameters.assoc(:key) rescue false
|
11
|
+
|
10
12
|
def self.default_output_variable
|
11
13
|
@@default_output_variable
|
12
14
|
end
|
@@ -19,7 +21,11 @@ module Tilt
|
|
19
21
|
def prepare
|
20
22
|
@outvar = options[:outvar] || self.class.default_output_variable
|
21
23
|
options[:trim] = '<>' if !(options[:trim] == false) && (options[:trim].nil? || options[:trim] == true)
|
22
|
-
@engine =
|
24
|
+
@engine = if SUPPORTS_KVARGS
|
25
|
+
::ERB.new(data, trim_mode: options[:trim], eoutvar: @outvar)
|
26
|
+
else
|
27
|
+
::ERB.new(data, options[:safe], options[:trim], @outvar)
|
28
|
+
end
|
23
29
|
end
|
24
30
|
|
25
31
|
def precompiled_template(locals)
|
data/lib/tilt/haml.rb
CHANGED
@@ -62,7 +62,7 @@ module Tilt
|
|
62
62
|
<<-RUBY
|
63
63
|
begin
|
64
64
|
extend Haml::Helpers
|
65
|
-
_hamlout = @haml_buffer = Haml::Buffer.new(
|
65
|
+
_hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, #{options_for_buffer.inspect})
|
66
66
|
_erbout = _hamlout.buffer
|
67
67
|
__in_erb_template = true
|
68
68
|
_haml_locals = locals
|
@@ -76,7 +76,7 @@ module Tilt
|
|
76
76
|
<<-RUBY
|
77
77
|
#{precompiled_method_return_value}
|
78
78
|
ensure
|
79
|
-
@haml_buffer = @haml_buffer.upper if
|
79
|
+
@haml_buffer = @haml_buffer.upper if haml_buffer
|
80
80
|
end
|
81
81
|
RUBY
|
82
82
|
end
|
data/lib/tilt/pandoc.rb
CHANGED
@@ -7,30 +7,38 @@ module Tilt
|
|
7
7
|
class PandocTemplate < Template
|
8
8
|
self.default_mime_type = 'text/html'
|
9
9
|
|
10
|
-
def tilt_to_pandoc_mapping
|
11
|
-
{ :smartypants => :smart,
|
12
|
-
:escape_html => { :f => 'markdown-raw_html' },
|
13
|
-
:commonmark => { :f => 'commonmark' },
|
14
|
-
:markdown_strict => { :f => 'markdown_strict' }
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
10
|
# turn options hash into an array
|
19
11
|
# Map tilt options to pandoc options
|
20
12
|
# Replace hash keys with value true with symbol for key
|
21
13
|
# Remove hash keys with value false
|
22
14
|
# Leave other hash keys untouched
|
23
15
|
def pandoc_options
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
result = []
|
17
|
+
from = "markdown"
|
18
|
+
smart_extension = "-smart"
|
19
|
+
options.each do |k,v|
|
20
|
+
case k
|
21
|
+
when :smartypants
|
22
|
+
smart_extension = "+smart" if v
|
23
|
+
when :escape_html
|
24
|
+
from = "markdown-raw_html" if v
|
25
|
+
when :commonmark
|
26
|
+
from = "commonmark" if v
|
27
|
+
when :markdown_strict
|
28
|
+
from = "markdown_strict" if v
|
30
29
|
else
|
31
|
-
|
30
|
+
case v
|
31
|
+
when true
|
32
|
+
result << k
|
33
|
+
when false
|
34
|
+
# do nothing
|
35
|
+
else
|
36
|
+
result << { k => v }
|
37
|
+
end
|
32
38
|
end
|
33
39
|
end
|
40
|
+
result << { :f => from + smart_extension }
|
41
|
+
result
|
34
42
|
end
|
35
43
|
|
36
44
|
def prepare
|
data/lib/tilt/redcarpet.rb
CHANGED
@@ -75,9 +75,12 @@ module Tilt
|
|
75
75
|
end
|
76
76
|
|
77
77
|
if defined? ::Redcarpet::Render and defined? ::Redcarpet::Markdown
|
78
|
-
|
78
|
+
superclass = Redcarpet2Template
|
79
79
|
else
|
80
|
-
|
80
|
+
superclass = Redcarpet1Template
|
81
|
+
end
|
82
|
+
|
83
|
+
class RedcarpetTemplate < superclass
|
81
84
|
end
|
82
85
|
end
|
83
86
|
|
data/lib/tilt/rst-pandoc.rb
CHANGED
@@ -1,18 +1,23 @@
|
|
1
1
|
require 'tilt/template'
|
2
|
-
require '
|
2
|
+
require 'pandoc'
|
3
3
|
|
4
4
|
module Tilt
|
5
5
|
# Pandoc reStructuredText implementation. See:
|
6
6
|
# http://pandoc.org/
|
7
|
-
# Use PandocTemplate and specify input format
|
8
7
|
class RstPandocTemplate < PandocTemplate
|
9
|
-
|
10
|
-
|
8
|
+
self.default_mime_type = 'text/html'
|
9
|
+
|
10
|
+
def prepare
|
11
|
+
@engine = PandocRuby.new(data, :f => "rst")
|
12
|
+
@output = nil
|
13
|
+
end
|
14
|
+
|
15
|
+
def evaluate(scope, locals, &block)
|
16
|
+
@output ||= @engine.to_html.strip
|
11
17
|
end
|
12
18
|
|
13
|
-
def
|
14
|
-
|
15
|
-
super
|
19
|
+
def allows_script?
|
20
|
+
false
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
data/lib/tilt/sass.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'tilt/template'
|
2
|
-
require 'sass'
|
3
2
|
|
4
3
|
module Tilt
|
5
4
|
# Sass template implementation. See:
|
@@ -9,12 +8,36 @@ module Tilt
|
|
9
8
|
class SassTemplate < Template
|
10
9
|
self.default_mime_type = 'text/css'
|
11
10
|
|
11
|
+
begin
|
12
|
+
require 'sass-embedded'
|
13
|
+
require 'uri'
|
14
|
+
Engine = nil
|
15
|
+
rescue LoadError => err
|
16
|
+
begin
|
17
|
+
require 'sassc'
|
18
|
+
Engine = ::SassC::Engine
|
19
|
+
rescue LoadError
|
20
|
+
begin
|
21
|
+
require 'sass'
|
22
|
+
Engine = ::Sass::Engine
|
23
|
+
rescue LoadError
|
24
|
+
raise err
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
12
29
|
def prepare
|
13
|
-
@engine =
|
30
|
+
@engine = unless Engine.nil?
|
31
|
+
Engine.new(data, sass_options)
|
32
|
+
end
|
14
33
|
end
|
15
34
|
|
16
35
|
def evaluate(scope, locals, &block)
|
17
|
-
@output ||= @engine.
|
36
|
+
@output ||= if @engine.nil?
|
37
|
+
::Sass.compile_string(data, **sass_embedded_options).css
|
38
|
+
else
|
39
|
+
@engine.render
|
40
|
+
end
|
18
41
|
end
|
19
42
|
|
20
43
|
def allows_script?
|
@@ -22,6 +45,16 @@ module Tilt
|
|
22
45
|
end
|
23
46
|
|
24
47
|
private
|
48
|
+
def eval_file_url
|
49
|
+
path = File.absolute_path(eval_file)
|
50
|
+
path = '/' + path unless path.start_with?('/')
|
51
|
+
::URI::File.build([nil, ::URI::DEFAULT_PARSER.escape(path)]).to_s
|
52
|
+
end
|
53
|
+
|
54
|
+
def sass_embedded_options
|
55
|
+
options.merge(:url => eval_file_url, :syntax => :indented)
|
56
|
+
end
|
57
|
+
|
25
58
|
def sass_options
|
26
59
|
options.merge(:filename => eval_file, :line => line, :syntax => :sass)
|
27
60
|
end
|
@@ -32,6 +65,10 @@ module Tilt
|
|
32
65
|
self.default_mime_type = 'text/css'
|
33
66
|
|
34
67
|
private
|
68
|
+
def sass_embedded_options
|
69
|
+
options.merge(:url => eval_file_url, :syntax => :scss)
|
70
|
+
end
|
71
|
+
|
35
72
|
def sass_options
|
36
73
|
options.merge(:filename => eval_file, :line => line, :syntax => :scss)
|
37
74
|
end
|
data/lib/tilt/template.rb
CHANGED
@@ -157,6 +157,8 @@ module Tilt
|
|
157
157
|
raise NotImplementedError
|
158
158
|
end
|
159
159
|
|
160
|
+
CLASS_METHOD = Kernel.instance_method(:class)
|
161
|
+
|
160
162
|
# Execute the compiled template and return the result string. Template
|
161
163
|
# evaluation is guaranteed to be performed in the scope object with the
|
162
164
|
# locals specified and with support for yielding to the block.
|
@@ -166,7 +168,16 @@ module Tilt
|
|
166
168
|
def evaluate(scope, locals, &block)
|
167
169
|
locals_keys = locals.keys
|
168
170
|
locals_keys.sort!{|x, y| x.to_s <=> y.to_s}
|
169
|
-
|
171
|
+
case scope
|
172
|
+
when Object
|
173
|
+
method = compiled_method(locals_keys, Module === scope ? scope : scope.class)
|
174
|
+
else
|
175
|
+
if RUBY_VERSION >= '2'
|
176
|
+
method = compiled_method(locals_keys, CLASS_METHOD.bind(scope).call)
|
177
|
+
else
|
178
|
+
method = compiled_method(locals_keys, Object)
|
179
|
+
end
|
180
|
+
end
|
170
181
|
method.bind(scope).call(locals, &block)
|
171
182
|
end
|
172
183
|
|
@@ -231,9 +242,9 @@ module Tilt
|
|
231
242
|
end
|
232
243
|
|
233
244
|
# The compiled method for the locals keys provided.
|
234
|
-
def compiled_method(locals_keys)
|
245
|
+
def compiled_method(locals_keys, scope_class=nil)
|
235
246
|
LOCK.synchronize do
|
236
|
-
@compiled_method[locals_keys] ||= compile_template_method(locals_keys)
|
247
|
+
@compiled_method[[scope_class, locals_keys]] ||= compile_template_method(locals_keys, scope_class)
|
237
248
|
end
|
238
249
|
end
|
239
250
|
|
@@ -247,7 +258,7 @@ module Tilt
|
|
247
258
|
end.join("\n")
|
248
259
|
end
|
249
260
|
|
250
|
-
def compile_template_method(local_keys)
|
261
|
+
def compile_template_method(local_keys, scope_class=nil)
|
251
262
|
source, offset = precompiled(local_keys)
|
252
263
|
local_code = local_extraction(local_keys)
|
253
264
|
|
@@ -261,17 +272,12 @@ module Tilt
|
|
261
272
|
method_source << <<-RUBY
|
262
273
|
TOPOBJECT.class_eval do
|
263
274
|
def #{method_name}(locals)
|
264
|
-
|
265
|
-
class << self
|
266
|
-
this, locals = Thread.current[:tilt_vars]
|
267
|
-
locals = locals
|
268
|
-
this.instance_eval do
|
269
|
-
#{local_code}
|
275
|
+
#{local_code}
|
270
276
|
RUBY
|
271
277
|
offset += method_source.count("\n")
|
272
278
|
method_source << source
|
273
|
-
method_source << "\nend;end;
|
274
|
-
Object.class_eval(method_source, eval_file, line - offset)
|
279
|
+
method_source << "\nend;end;"
|
280
|
+
(scope_class || Object).class_eval(method_source, eval_file, line - offset)
|
275
281
|
unbind_compiled_method(method_name)
|
276
282
|
end
|
277
283
|
|
data/lib/tilt.rb
CHANGED
@@ -4,7 +4,7 @@ require 'tilt/template'
|
|
4
4
|
# Namespace for Tilt. This module is not intended to be included anywhere.
|
5
5
|
module Tilt
|
6
6
|
# Current version.
|
7
|
-
VERSION = '2.0.
|
7
|
+
VERSION = '2.0.11'
|
8
8
|
|
9
9
|
@default_mapping = Mapping.new
|
10
10
|
|
@@ -161,6 +161,7 @@ module Tilt
|
|
161
161
|
register_lazy 'Slim::Template', 'slim', 'slim'
|
162
162
|
register_lazy 'Tilt::HandlebarsTemplate', 'tilt/handlebars', 'handlebars', 'hbs'
|
163
163
|
register_lazy 'Tilt::OrgTemplate', 'org-ruby', 'org'
|
164
|
+
register_lazy 'Tilt::EmacsOrgTemplate', 'tilt/emacs_org', 'org'
|
164
165
|
register_lazy 'Opal::Processor', 'opal', 'opal', 'rb'
|
165
166
|
register_lazy 'Tilt::JbuilderTemplate', 'tilt/jbuilder', 'jbuilder'
|
166
167
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Generic interface to multiple Ruby template engines
|
14
14
|
email: r@tomayko.com
|
@@ -17,15 +17,8 @@ executables:
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- CHANGELOG.md
|
21
20
|
- COPYING
|
22
|
-
- Gemfile
|
23
|
-
- HACKING
|
24
|
-
- README.md
|
25
|
-
- Rakefile
|
26
21
|
- bin/tilt
|
27
|
-
- docs/TEMPLATES.md
|
28
|
-
- docs/common.css
|
29
22
|
- lib/tilt.rb
|
30
23
|
- lib/tilt/asciidoc.rb
|
31
24
|
- lib/tilt/babel.rb
|
@@ -65,65 +58,11 @@ files:
|
|
65
58
|
- lib/tilt/typescript.rb
|
66
59
|
- lib/tilt/wikicloth.rb
|
67
60
|
- lib/tilt/yajl.rb
|
68
|
-
|
69
|
-
- man/tilt.1.ronn
|
70
|
-
- test/markaby/locals.mab
|
71
|
-
- test/markaby/markaby.mab
|
72
|
-
- test/markaby/markaby_other_static.mab
|
73
|
-
- test/markaby/render_twice.mab
|
74
|
-
- test/markaby/scope.mab
|
75
|
-
- test/markaby/yielding.mab
|
76
|
-
- test/mytemplate.rb
|
77
|
-
- test/test_helper.rb
|
78
|
-
- test/tilt_asciidoctor_test.rb
|
79
|
-
- test/tilt_babeltemplate.rb
|
80
|
-
- test/tilt_blueclothtemplate_test.rb
|
81
|
-
- test/tilt_buildertemplate_test.rb
|
82
|
-
- test/tilt_cache_test.rb
|
83
|
-
- test/tilt_coffeescripttemplate_test.rb
|
84
|
-
- test/tilt_commonmarkertemplate_test.rb
|
85
|
-
- test/tilt_compilesite_test.rb
|
86
|
-
- test/tilt_creoletemplate_test.rb
|
87
|
-
- test/tilt_csv_test.rb
|
88
|
-
- test/tilt_erbtemplate_test.rb
|
89
|
-
- test/tilt_erubistemplate_test.rb
|
90
|
-
- test/tilt_erubitemplate_test.rb
|
91
|
-
- test/tilt_etannitemplate_test.rb
|
92
|
-
- test/tilt_hamltemplate_test.rb
|
93
|
-
- test/tilt_kramdown_test.rb
|
94
|
-
- test/tilt_lesstemplate_test.less
|
95
|
-
- test/tilt_lesstemplate_test.rb
|
96
|
-
- test/tilt_liquidtemplate_test.rb
|
97
|
-
- test/tilt_livescripttemplate_test.rb
|
98
|
-
- test/tilt_mapping_test.rb
|
99
|
-
- test/tilt_markaby_test.rb
|
100
|
-
- test/tilt_markdown_test.rb
|
101
|
-
- test/tilt_marukutemplate_test.rb
|
102
|
-
- test/tilt_metadata_test.rb
|
103
|
-
- test/tilt_nokogiritemplate_test.rb
|
104
|
-
- test/tilt_pandoctemplate_test.rb
|
105
|
-
- test/tilt_prawntemplate.prawn
|
106
|
-
- test/tilt_prawntemplate_test.rb
|
107
|
-
- test/tilt_radiustemplate_test.rb
|
108
|
-
- test/tilt_rdiscounttemplate_test.rb
|
109
|
-
- test/tilt_rdoctemplate_test.rb
|
110
|
-
- test/tilt_redcarpettemplate_test.rb
|
111
|
-
- test/tilt_redclothtemplate_test.rb
|
112
|
-
- test/tilt_rstpandoctemplate_test.rb
|
113
|
-
- test/tilt_sasstemplate_test.rb
|
114
|
-
- test/tilt_sigil_test.rb
|
115
|
-
- test/tilt_stringtemplate_test.rb
|
116
|
-
- test/tilt_template_test.rb
|
117
|
-
- test/tilt_test.rb
|
118
|
-
- test/tilt_typescript_test.rb
|
119
|
-
- test/tilt_wikiclothtemplate_test.rb
|
120
|
-
- test/tilt_yajltemplate_test.rb
|
121
|
-
- tilt.gemspec
|
122
|
-
homepage: http://github.com/rtomayko/tilt/
|
61
|
+
homepage: https://github.com/rtomayko/tilt/
|
123
62
|
licenses:
|
124
63
|
- MIT
|
125
64
|
metadata: {}
|
126
|
-
post_install_message:
|
65
|
+
post_install_message:
|
127
66
|
rdoc_options:
|
128
67
|
- "--line-numbers"
|
129
68
|
- "--inline-source"
|
@@ -144,49 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
83
|
- !ruby/object:Gem::Version
|
145
84
|
version: '0'
|
146
85
|
requirements: []
|
147
|
-
|
148
|
-
|
149
|
-
signing_key:
|
86
|
+
rubygems_version: 3.2.29
|
87
|
+
signing_key:
|
150
88
|
specification_version: 2
|
151
89
|
summary: Generic interface to multiple Ruby template engines
|
152
|
-
test_files:
|
153
|
-
- test/tilt_asciidoctor_test.rb
|
154
|
-
- test/tilt_blueclothtemplate_test.rb
|
155
|
-
- test/tilt_buildertemplate_test.rb
|
156
|
-
- test/tilt_cache_test.rb
|
157
|
-
- test/tilt_coffeescripttemplate_test.rb
|
158
|
-
- test/tilt_commonmarkertemplate_test.rb
|
159
|
-
- test/tilt_compilesite_test.rb
|
160
|
-
- test/tilt_creoletemplate_test.rb
|
161
|
-
- test/tilt_csv_test.rb
|
162
|
-
- test/tilt_erbtemplate_test.rb
|
163
|
-
- test/tilt_erubistemplate_test.rb
|
164
|
-
- test/tilt_erubitemplate_test.rb
|
165
|
-
- test/tilt_etannitemplate_test.rb
|
166
|
-
- test/tilt_hamltemplate_test.rb
|
167
|
-
- test/tilt_kramdown_test.rb
|
168
|
-
- test/tilt_lesstemplate_test.rb
|
169
|
-
- test/tilt_liquidtemplate_test.rb
|
170
|
-
- test/tilt_livescripttemplate_test.rb
|
171
|
-
- test/tilt_mapping_test.rb
|
172
|
-
- test/tilt_markaby_test.rb
|
173
|
-
- test/tilt_markdown_test.rb
|
174
|
-
- test/tilt_marukutemplate_test.rb
|
175
|
-
- test/tilt_metadata_test.rb
|
176
|
-
- test/tilt_nokogiritemplate_test.rb
|
177
|
-
- test/tilt_pandoctemplate_test.rb
|
178
|
-
- test/tilt_prawntemplate_test.rb
|
179
|
-
- test/tilt_radiustemplate_test.rb
|
180
|
-
- test/tilt_rdiscounttemplate_test.rb
|
181
|
-
- test/tilt_rdoctemplate_test.rb
|
182
|
-
- test/tilt_redcarpettemplate_test.rb
|
183
|
-
- test/tilt_redclothtemplate_test.rb
|
184
|
-
- test/tilt_rstpandoctemplate_test.rb
|
185
|
-
- test/tilt_sasstemplate_test.rb
|
186
|
-
- test/tilt_sigil_test.rb
|
187
|
-
- test/tilt_stringtemplate_test.rb
|
188
|
-
- test/tilt_template_test.rb
|
189
|
-
- test/tilt_test.rb
|
190
|
-
- test/tilt_typescript_test.rb
|
191
|
-
- test/tilt_wikiclothtemplate_test.rb
|
192
|
-
- test/tilt_yajltemplate_test.rb
|
90
|
+
test_files: []
|
data/CHANGELOG.md
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
## master
|
2
|
-
|
3
|
-
## 2.0.8 (2017-07-24)
|
4
|
-
|
5
|
-
* Register .tsx for TypeScript (#315, backus)
|
6
|
-
* Use Haml 5's new API (#312, k0kubun)
|
7
|
-
* Use correct parser options for CommonMarker (#320, rewritten)
|
8
|
-
* Suppress warnings when no locals are used (#304, amatsuda)
|
9
|
-
* Haml: Accept `outvar` (#317, k0kubun)
|
10
|
-
|
11
|
-
## 2.0.7 (2017-03-19)
|
12
|
-
|
13
|
-
* Do not modify BasicObject during template compilation on ruby 2.0+ (#309, jeremyevans)
|
14
|
-
|
15
|
-
## 2.0.6 (2017-01-26)
|
16
|
-
|
17
|
-
* Add support for LiveScript (#286, @Announcement Jacob Francis Powers)
|
18
|
-
* Add support for Sigil (#302, winebarrel)
|
19
|
-
* Add support for Erubi (#308, jeremyevans)
|
20
|
-
* Add support for options in Liquid (#298, #299, laCour)
|
21
|
-
* Always sort locals by strings (#307, jeremyevans)
|
22
|
-
|
23
|
-
* Fix test warnings (#305, amatsuda)
|
24
|
-
* Fix indentation (#293, yui-knk)
|
25
|
-
* Use SVG badges in README (#294, vasinov)
|
26
|
-
* Fix typo and trailing space (#295, #296, karloescota)
|
27
|
-
|
28
|
-
## 2.0.5 (2016-06-02)
|
29
|
-
|
30
|
-
* Add support for reST using Pandoc (#284, mfenner)
|
31
|
-
* Make lazy loading thread-safe; remove warning (judofyr)
|
32
|
-
|
33
|
-
## 2.0.4 (2016-05-16)
|
34
|
-
|
35
|
-
* Fix regression in BuilderTemplate (#283, judofyr)
|
36
|
-
|
37
|
-
## 2.0.3 (2016-05-12)
|
38
|
-
|
39
|
-
* Add Pandoc support (#276, jmuheim)
|
40
|
-
* Add CommonMark support (#282, raphink)
|
41
|
-
* Add TypeScript support (#278, nghitran)
|
42
|
-
* Work with frozen string literal (#274, jeremyevans)
|
43
|
-
* Add MIME type for Babel (#273, SaitoWu)
|
44
|
-
|
45
|
-
## 2.0.2 (2016-01-06)
|
46
|
-
|
47
|
-
* Pass options to Redcarpet (#250, hughbien)
|
48
|
-
* Haml: Improve error message on frozen self (judofyr)
|
49
|
-
* Add basic support for Babel (judofyr)
|
50
|
-
* Add support for .litcoffee (#243, judofyr, mr-vinn)
|
51
|
-
* Document Tilt::Cache (#266, tommay)
|
52
|
-
* Sort local keys for better caching (#257, jeremyevans)
|
53
|
-
* Add more CSV options (#256, Juanmcuello)
|
54
|
-
* Add Prawn template (kematzy)
|
55
|
-
* Improve cache-miss performance in Tilt::Cache (#251, tommay)
|
56
|
-
* Add man page (#241, josephholsten)
|
57
|
-
* Support YAML/JSON data in bin/tilt (#241, josephholsten)
|
58
|
-
|
59
|
-
## 2.0.1 (2014-03-21)
|
60
|
-
|
61
|
-
* Fix Tilt::Mapping bug in Ruby 2.1.0 (9589652c569760298f2647f7a0f9ed4f85129f20)
|
62
|
-
* Fix `tilt --list` (#223, Achrome)
|
63
|
-
* Fix circular require (#221, amarshall)
|
64
|
-
|
65
|
-
## 2.0.0 (2013-11-30)
|
66
|
-
|
67
|
-
* Support Pathname in Template#new (#219, kabturek)
|
68
|
-
* Add Mapping#templates_for (judofyr)
|
69
|
-
* Support old-style #register (judofyr)
|
70
|
-
* Add Handlebars as external template engine (#204, judofyr, jimothyGator)
|
71
|
-
* Add org-ruby as external template engine (#207, judofyr, minad)
|
72
|
-
* Documentation typo (#208, elgalu)
|
73
|
-
|
74
|
-
## 2.0.0.beta1 (2013-07-16)
|
75
|
-
|
76
|
-
* Documentation typo (#202, chip)
|
77
|
-
* Use YARD for documentation (#189, judofyr)
|
78
|
-
* Add Slim as an external template engine (judofyr)
|
79
|
-
* Add Tilt.templates_for (#121, judofyr)
|
80
|
-
* Add Tilt.current_template (#151, judofyr)
|
81
|
-
* Avoid loading all files in tilt.rb (#160, #187, judofyr)
|
82
|
-
* Implement lazily required templates classes (#178, #187, judofyr)
|
83
|
-
* Move #allows_script and default_mime_type to metadata (#187, judofyr)
|
84
|
-
* Introduce Tilt::Mapping (#187, judofyr)
|
85
|
-
* Make template compilation thread-safe (#191, judofyr)
|
86
|
-
|
87
|
-
## 1.4.1 (2013-05-08)
|
88
|
-
|
89
|
-
* Support Arrays in pre/postambles (#193, jbwiv)
|
90
|
-
|
91
|
-
## 1.4.0 (2013-05-01)
|
92
|
-
|
93
|
-
* Better encoding support
|
94
|
-
|
95
|
-
## 1.3.7 (2013-04-09)
|
96
|
-
|
97
|
-
* Erubis: Check for the correct constant (#183, mattwildig)
|
98
|
-
* Don't fail when BasicObject is defined in 1.8 (#182, technobrat, judofyr)
|
99
|
-
|
100
|
-
## 1.3.6 (2013-03-17)
|
101
|
-
|
102
|
-
* Accept Hash that implements #path as options (#180, lawso017)
|
103
|
-
* Changed extension for CsvTemplate from '.csv' to '.rcsv' (#177, alexgb)
|
104
|
-
|
105
|
-
## 1.3.5 (2013-03-06)
|
106
|
-
|
107
|
-
* Fixed extension for PlainTemplate (judofyr)
|
108
|
-
* Improved local variables regexp (#174, razorinc)
|
109
|
-
* Added CHANGELOG.md
|
110
|
-
|
111
|
-
## 1.3.4 (2013-02-28)
|
112
|
-
|
113
|
-
* Support RDoc 4.0 (#168, judofyr)
|
114
|
-
* Add mention of Org-Mode support (#165, aslakknutsen)
|
115
|
-
* Add AsciiDoctorTemplate (#163, #164, aslakknutsen)
|
116
|
-
* Add PlainTextTemplate (nathanaeljones)
|
117
|
-
* Restrict locals to valid variable names (#158, thinkerbot)
|
118
|
-
* ERB: Improve trim mode support (#156, ssimeonov)
|
119
|
-
* Add CSVTemplate (#153, alexgb)
|
120
|
-
* Remove special case for 1.9.1 (#147, guilleiguaran)
|
121
|
-
* Add allows\_script? method to Template (#143, bhollis)
|
122
|
-
* Default to using Redcarpet2 (#139, DAddYE)
|
123
|
-
* Allow File/Tempfile as filenames (#134, jamesotron)
|
124
|
-
* Add EtanniTemplate (#131, manveru)
|
125
|
-
* Support RDoc 3.10 (#112, timfel)
|
126
|
-
* Always compile templates; remove old source evaluator (rtomayko)
|
127
|
-
* Less: Options are now being passed to the parser (#106, cowboyd)
|