frontman-ssg 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +13 -2
- data/Rakefile +5 -2
- data/frontman-ssg.gemspec +1 -0
- data/lib/frontman.rb +0 -5
- data/lib/frontman/app.rb +1 -3
- data/lib/frontman/builder/file.rb +1 -3
- data/lib/frontman/commands/init.rb +2 -3
- data/lib/frontman/commands/serve.rb +29 -28
- data/lib/frontman/concerns/forward_calls_to_app.rb +1 -1
- data/lib/frontman/context.rb +68 -57
- data/lib/frontman/data_store.rb +1 -3
- data/lib/frontman/iterator.rb +1 -3
- data/lib/frontman/renderers/erb_renderer.rb +19 -1
- data/lib/frontman/renderers/haml_renderer.rb +29 -1
- data/lib/frontman/renderers/renderer_resolver.rb +18 -5
- data/lib/frontman/renderers/slim_renderer.rb +30 -0
- data/lib/frontman/resource.rb +9 -13
- data/lib/frontman/sitemap_tree.rb +1 -3
- data/lib/frontman/version.rb +1 -1
- data/project-templates/webpack/helpers/assets_helper.rb +1 -3
- data/sorbet/rbi/gems/ast.rbi +48 -0
- data/sorbet/rbi/gems/better_errors.rbi +180 -0
- data/sorbet/rbi/gems/binding_of_caller.rbi +23 -0
- data/sorbet/rbi/gems/coderay.rbi +24 -0
- data/sorbet/rbi/gems/debug_inspector.rbi +19 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/dotenv.rbi +68 -0
- data/sorbet/rbi/gems/erubi.rbi +27 -0
- data/sorbet/rbi/gems/erubis.rbi +280 -0
- data/sorbet/rbi/gems/haml.rbi +521 -0
- data/sorbet/rbi/gems/htmlentities.rbi +46 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +15 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm.rbi +29 -0
- data/sorbet/rbi/gems/kramdown.rbi +338 -0
- data/sorbet/rbi/gems/listen.rbi +301 -0
- data/sorbet/rbi/gems/mustermann.rbi +481 -0
- data/sorbet/rbi/gems/nokogiri.rbi +1011 -0
- data/sorbet/rbi/gems/parallel.rbi +82 -0
- data/sorbet/rbi/gems/parser.rbi +1405 -0
- data/sorbet/rbi/gems/rack-protection.rbi +16 -0
- data/sorbet/rbi/gems/rack.rbi +507 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +641 -0
- data/sorbet/rbi/gems/rexml.rbi +93 -0
- data/sorbet/rbi/gems/rouge.rbi +1551 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1893 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1125 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +274 -0
- data/sorbet/rbi/gems/rubocop.rbi +7403 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
- data/sorbet/rbi/gems/ruby2_keywords.rbi +17 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +405 -0
- data/sorbet/rbi/gems/sinatra.rbi +488 -0
- data/sorbet/rbi/gems/slim.rbi +144 -0
- data/sorbet/rbi/gems/temple.rbi +281 -0
- data/sorbet/rbi/gems/thor.rbi +522 -0
- data/sorbet/rbi/gems/tilt.rbi +82 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/gems/yaml-front-matter.rbi +16 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +2859 -24228
- data/sorbet/rbi/hidden-definitions/hidden.rbi +7111 -40830
- data/sorbet/rbi/sorbet-typed/lib/nokogiri/1.10.10/nokogiri.rbi +1615 -0
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/spec/frontman/bootstrapper_spec.rb +1 -1
- data/spec/frontman/context_spec.rb +45 -6
- data/spec/frontman/mocks/context.haml +18 -0
- data/spec/frontman/renderers/slim_renderer_spec.rb +12 -0
- metadata +66 -4
@@ -0,0 +1,32 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/docile/all/docile.rbi
|
9
|
+
#
|
10
|
+
# docile-1.3.2
|
11
|
+
|
12
|
+
module Docile
|
13
|
+
def dsl_eval(dsl, *args, &block); end
|
14
|
+
def dsl_eval_immutable(dsl, *args, &block); end
|
15
|
+
def dsl_eval_with_block_return(dsl, *args, &block); end
|
16
|
+
def self.dsl_eval(dsl, *args, &block); end
|
17
|
+
def self.dsl_eval_immutable(dsl, *args, &block); end
|
18
|
+
def self.dsl_eval_with_block_return(dsl, *args, &block); end
|
19
|
+
extend Docile::Execution
|
20
|
+
end
|
21
|
+
module Docile::Execution
|
22
|
+
def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
|
23
|
+
def self.exec_in_proxy_context(dsl, proxy_type, *args, &block); end
|
24
|
+
end
|
25
|
+
class Docile::FallbackContextProxy
|
26
|
+
def initialize(receiver, fallback); end
|
27
|
+
def instance_variables; end
|
28
|
+
def method_missing(method, *args, &block); end
|
29
|
+
end
|
30
|
+
class Docile::ChainingFallbackContextProxy < Docile::FallbackContextProxy
|
31
|
+
def method_missing(method, *args, &block); end
|
32
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/dotenv/all/dotenv.rbi
|
9
|
+
#
|
10
|
+
# dotenv-2.7.6
|
11
|
+
|
12
|
+
module Dotenv
|
13
|
+
def ignoring_nonexistent_files; end
|
14
|
+
def instrument(name, payload = nil, &block); end
|
15
|
+
def load!(*filenames); end
|
16
|
+
def load(*filenames); end
|
17
|
+
def overload!(*filenames); end
|
18
|
+
def overload(*filenames); end
|
19
|
+
def parse(*filenames); end
|
20
|
+
def require_keys(*keys); end
|
21
|
+
def self.ignoring_nonexistent_files; end
|
22
|
+
def self.instrument(name, payload = nil, &block); end
|
23
|
+
def self.instrumenter; end
|
24
|
+
def self.instrumenter=(arg0); end
|
25
|
+
def self.load!(*filenames); end
|
26
|
+
def self.load(*filenames); end
|
27
|
+
def self.overload!(*filenames); end
|
28
|
+
def self.overload(*filenames); end
|
29
|
+
def self.parse(*filenames); end
|
30
|
+
def self.require_keys(*keys); end
|
31
|
+
def self.with(*filenames); end
|
32
|
+
def with(*filenames); end
|
33
|
+
end
|
34
|
+
module Dotenv::Substitutions
|
35
|
+
end
|
36
|
+
module Dotenv::Substitutions::Variable
|
37
|
+
def self.call(value, env, is_load); end
|
38
|
+
def self.substitute(match, variable, env); end
|
39
|
+
end
|
40
|
+
module Dotenv::Substitutions::Command
|
41
|
+
def self.call(value, _env, _is_load); end
|
42
|
+
end
|
43
|
+
class Dotenv::FormatError < SyntaxError
|
44
|
+
end
|
45
|
+
class Dotenv::Parser
|
46
|
+
def call; end
|
47
|
+
def expand_newlines(value); end
|
48
|
+
def initialize(string, is_load = nil); end
|
49
|
+
def parse_line(line); end
|
50
|
+
def parse_value(value); end
|
51
|
+
def self.call(string, is_load = nil); end
|
52
|
+
def self.substitutions; end
|
53
|
+
def unescape_characters(value); end
|
54
|
+
def variable_not_set?(line); end
|
55
|
+
end
|
56
|
+
class Dotenv::Environment < Hash
|
57
|
+
def apply!; end
|
58
|
+
def apply; end
|
59
|
+
def filename; end
|
60
|
+
def initialize(filename, is_load = nil); end
|
61
|
+
def load(is_load = nil); end
|
62
|
+
def read; end
|
63
|
+
end
|
64
|
+
class Dotenv::Error < StandardError
|
65
|
+
end
|
66
|
+
class Dotenv::MissingKeys < Dotenv::Error
|
67
|
+
def initialize(keys); end
|
68
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/erubi/all/erubi.rbi
|
9
|
+
#
|
10
|
+
# erubi-1.10.0
|
11
|
+
|
12
|
+
module Erubi
|
13
|
+
def self.h(value); end
|
14
|
+
end
|
15
|
+
class Erubi::Engine
|
16
|
+
def add_code(code); end
|
17
|
+
def add_expression(indicator, code); end
|
18
|
+
def add_expression_result(code); end
|
19
|
+
def add_expression_result_escaped(code); end
|
20
|
+
def add_postamble(postamble); end
|
21
|
+
def add_text(text); end
|
22
|
+
def bufvar; end
|
23
|
+
def filename; end
|
24
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
25
|
+
def initialize(input, properties = nil); end
|
26
|
+
def src; end
|
27
|
+
end
|
@@ -0,0 +1,280 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/erubis/all/erubis.rbi
|
9
|
+
#
|
10
|
+
# erubis-2.7.0
|
11
|
+
|
12
|
+
module Kernel
|
13
|
+
def not_implemented; end
|
14
|
+
end
|
15
|
+
module Erubis
|
16
|
+
end
|
17
|
+
module Erubis::Generator
|
18
|
+
def add_expr_debug(src, code); end
|
19
|
+
def add_expr_escaped(src, code); end
|
20
|
+
def add_expr_literal(src, code); end
|
21
|
+
def add_postamble(src); end
|
22
|
+
def add_preamble(src); end
|
23
|
+
def add_stmt(src, code); end
|
24
|
+
def add_text(src, text); end
|
25
|
+
def escape_text(text); end
|
26
|
+
def escaped_expr(code); end
|
27
|
+
def escapefunc; end
|
28
|
+
def escapefunc=(arg0); end
|
29
|
+
def init_generator(properties = nil); end
|
30
|
+
def self.supported_properties; end
|
31
|
+
end
|
32
|
+
module Erubis::Converter
|
33
|
+
def convert(input); end
|
34
|
+
def convert_input(codebuf, input); end
|
35
|
+
def detect_spaces_at_bol(text, is_bol); end
|
36
|
+
def escape; end
|
37
|
+
def escape=(arg0); end
|
38
|
+
def init_converter(properties = nil); end
|
39
|
+
def postamble; end
|
40
|
+
def postamble=(arg0); end
|
41
|
+
def preamble; end
|
42
|
+
def preamble=(arg0); end
|
43
|
+
def self.supported_properties; end
|
44
|
+
end
|
45
|
+
module Erubis::Basic
|
46
|
+
end
|
47
|
+
module Erubis::Basic::Converter
|
48
|
+
def add_expr(src, code, indicator); end
|
49
|
+
def convert_input(src, input); end
|
50
|
+
def init_converter(properties = nil); end
|
51
|
+
def pattern; end
|
52
|
+
def pattern=(arg0); end
|
53
|
+
def pattern_regexp(pattern); end
|
54
|
+
def self.pattern_regexp(pattern); end
|
55
|
+
def self.supported_properties; end
|
56
|
+
def trim; end
|
57
|
+
def trim=(arg0); end
|
58
|
+
include Erubis::Converter
|
59
|
+
end
|
60
|
+
module Erubis::PI
|
61
|
+
end
|
62
|
+
module Erubis::PI::Converter
|
63
|
+
def add_pi_expr(codebuf, code, indicator); end
|
64
|
+
def add_pi_stmt(codebuf, code, pi_arg); end
|
65
|
+
def convert(input); end
|
66
|
+
def convert_input(codebuf, input); end
|
67
|
+
def init_converter(properties = nil); end
|
68
|
+
def pi; end
|
69
|
+
def pi=(arg0); end
|
70
|
+
def prefix; end
|
71
|
+
def prefix=(arg0); end
|
72
|
+
def self.desc; end
|
73
|
+
def self.supported_properties; end
|
74
|
+
include Erubis::Converter
|
75
|
+
end
|
76
|
+
class Erubis::ErubisError < StandardError
|
77
|
+
end
|
78
|
+
class Erubis::NotSupportedError < Erubis::ErubisError
|
79
|
+
end
|
80
|
+
class Erubis::Context
|
81
|
+
def [](key); end
|
82
|
+
def []=(key, value); end
|
83
|
+
def each; end
|
84
|
+
def initialize(hash = nil); end
|
85
|
+
def keys; end
|
86
|
+
def to_hash; end
|
87
|
+
def update(context_or_hash); end
|
88
|
+
include Enumerable
|
89
|
+
end
|
90
|
+
module Erubis::Evaluator
|
91
|
+
def evaluate(*args); end
|
92
|
+
def filename; end
|
93
|
+
def filename=(arg0); end
|
94
|
+
def init_evaluator(properties); end
|
95
|
+
def result(*args); end
|
96
|
+
def self.supported_properties; end
|
97
|
+
def src; end
|
98
|
+
def src=(arg0); end
|
99
|
+
end
|
100
|
+
module Erubis::RubyEvaluator
|
101
|
+
def def_method(object, method_name, filename = nil); end
|
102
|
+
def evaluate(_context = nil); end
|
103
|
+
def result(_binding_or_hash = nil); end
|
104
|
+
def self.supported_properties; end
|
105
|
+
include Erubis::Evaluator
|
106
|
+
end
|
107
|
+
class Erubis::Engine
|
108
|
+
def convert!(input); end
|
109
|
+
def initialize(input = nil, properties = nil); end
|
110
|
+
def process(input, context = nil, filename = nil); end
|
111
|
+
def process_proc(proc_obj, context = nil, filename = nil); end
|
112
|
+
def self.load_file(filename, properties = nil); end
|
113
|
+
end
|
114
|
+
class Erubis::Basic::Engine < Erubis::Engine
|
115
|
+
include Erubis::Basic::Converter
|
116
|
+
include Erubis::Evaluator
|
117
|
+
include Erubis::Generator
|
118
|
+
end
|
119
|
+
class Erubis::PI::Engine < Erubis::Engine
|
120
|
+
include Erubis::Evaluator
|
121
|
+
include Erubis::Generator
|
122
|
+
include Erubis::PI::Converter
|
123
|
+
end
|
124
|
+
module Erubis::XmlHelper
|
125
|
+
def escape_xml(value); end
|
126
|
+
def escape_xml2(value); end
|
127
|
+
def h(value); end
|
128
|
+
def html_escape(value); end
|
129
|
+
def self.escape_xml(value); end
|
130
|
+
def self.escape_xml2(value); end
|
131
|
+
def self.url_encode(str); end
|
132
|
+
def u(str); end
|
133
|
+
def url_encode(str); end
|
134
|
+
end
|
135
|
+
module Erubis::EscapeEnhancer
|
136
|
+
def add_expr(src, code, indicator); end
|
137
|
+
def self.desc; end
|
138
|
+
end
|
139
|
+
module Erubis::StdoutEnhancer
|
140
|
+
def add_postamble(src); end
|
141
|
+
def add_preamble(src); end
|
142
|
+
def self.desc; end
|
143
|
+
end
|
144
|
+
module Erubis::PrintOutEnhancer
|
145
|
+
def add_expr_escaped(src, code); end
|
146
|
+
def add_expr_literal(src, code); end
|
147
|
+
def add_postamble(src); end
|
148
|
+
def add_preamble(src); end
|
149
|
+
def add_text(src, text); end
|
150
|
+
def self.desc; end
|
151
|
+
end
|
152
|
+
module Erubis::PrintEnabledEnhancer
|
153
|
+
def add_preamble(src); end
|
154
|
+
def evaluate(context = nil); end
|
155
|
+
def print(*args); end
|
156
|
+
def self.desc; end
|
157
|
+
end
|
158
|
+
module Erubis::ArrayEnhancer
|
159
|
+
def add_postamble(src); end
|
160
|
+
def add_preamble(src); end
|
161
|
+
def self.desc; end
|
162
|
+
end
|
163
|
+
module Erubis::ArrayBufferEnhancer
|
164
|
+
def add_postamble(src); end
|
165
|
+
def add_preamble(src); end
|
166
|
+
def self.desc; end
|
167
|
+
end
|
168
|
+
module Erubis::StringBufferEnhancer
|
169
|
+
def add_postamble(src); end
|
170
|
+
def add_preamble(src); end
|
171
|
+
def self.desc; end
|
172
|
+
end
|
173
|
+
module Erubis::StringIOEnhancer
|
174
|
+
def add_postamble(src); end
|
175
|
+
def add_preamble(src); end
|
176
|
+
def self.desc; end
|
177
|
+
end
|
178
|
+
module Erubis::ErboutEnhancer
|
179
|
+
def add_postamble(src); end
|
180
|
+
def add_preamble(src); end
|
181
|
+
def self.desc; end
|
182
|
+
end
|
183
|
+
module Erubis::NoTextEnhancer
|
184
|
+
def add_text(src, text); end
|
185
|
+
def self.desc; end
|
186
|
+
end
|
187
|
+
module Erubis::NoCodeEnhancer
|
188
|
+
def add_expr(src, code, indicator); end
|
189
|
+
def add_postamble(src); end
|
190
|
+
def add_preamble(src); end
|
191
|
+
def add_stmt(src, code); end
|
192
|
+
def add_text(src, text); end
|
193
|
+
def self.desc; end
|
194
|
+
end
|
195
|
+
module Erubis::SimplifyEnhancer
|
196
|
+
def convert(input); end
|
197
|
+
def self.desc; end
|
198
|
+
end
|
199
|
+
module Erubis::BiPatternEnhancer
|
200
|
+
def add_text(src, text); end
|
201
|
+
def bipattern=(pat); end
|
202
|
+
def initialize(input, properties = nil); end
|
203
|
+
def self.desc; end
|
204
|
+
end
|
205
|
+
module Erubis::PrefixedLineEnhancer
|
206
|
+
def add_text(src, text); end
|
207
|
+
def init_generator(properties = nil); end
|
208
|
+
def self.desc; end
|
209
|
+
end
|
210
|
+
module Erubis::PercentLineEnhancer
|
211
|
+
def add_text(src, text); end
|
212
|
+
def self.desc; end
|
213
|
+
include Erubis::PrefixedLineEnhancer
|
214
|
+
end
|
215
|
+
module Erubis::HeaderFooterEnhancer
|
216
|
+
def add_text(src, text); end
|
217
|
+
def convert(input); end
|
218
|
+
def footer; end
|
219
|
+
def footer=(arg0); end
|
220
|
+
def header; end
|
221
|
+
def header=(arg0); end
|
222
|
+
def self.desc; end
|
223
|
+
end
|
224
|
+
module Erubis::DeleteIndentEnhancer
|
225
|
+
def convert_input(src, input); end
|
226
|
+
def self.desc; end
|
227
|
+
end
|
228
|
+
module Erubis::InterpolationEnhancer
|
229
|
+
def _add_text_to_str(str, text); end
|
230
|
+
def add_expr_escaped(str, code); end
|
231
|
+
def add_expr_literal(str, code); end
|
232
|
+
def add_text(src, text); end
|
233
|
+
def convert_input(src, input); end
|
234
|
+
def self.desc; end
|
235
|
+
end
|
236
|
+
module Erubis::RubyGenerator
|
237
|
+
def add_expr_debug(src, code); end
|
238
|
+
def add_expr_escaped(src, code); end
|
239
|
+
def add_expr_literal(src, code); end
|
240
|
+
def add_stmt(src, code); end
|
241
|
+
def add_text(src, text); end
|
242
|
+
def escape_text(text); end
|
243
|
+
def escaped_expr(code); end
|
244
|
+
def init_generator(properties = nil); end
|
245
|
+
def self.supported_properties; end
|
246
|
+
include Erubis::Generator
|
247
|
+
include Erubis::StringBufferEnhancer
|
248
|
+
end
|
249
|
+
class Erubis::Eruby < Erubis::Basic::Engine
|
250
|
+
include Erubis::RubyEvaluator
|
251
|
+
include Erubis::RubyGenerator
|
252
|
+
end
|
253
|
+
class Erubis::FastEruby < Erubis::Eruby
|
254
|
+
include Erubis::InterpolationEnhancer
|
255
|
+
end
|
256
|
+
class Erubis::EscapedEruby < Erubis::Eruby
|
257
|
+
include Erubis::EscapeEnhancer
|
258
|
+
end
|
259
|
+
class Erubis::XmlEruby < Erubis::Eruby
|
260
|
+
include Erubis::EscapeEnhancer
|
261
|
+
end
|
262
|
+
class Erubis::PI::Eruby < Erubis::PI::Engine
|
263
|
+
def init_converter(properties = nil); end
|
264
|
+
include Erubis::RubyEvaluator
|
265
|
+
include Erubis::RubyGenerator
|
266
|
+
end
|
267
|
+
class Erubis::TinyEruby
|
268
|
+
def convert(input); end
|
269
|
+
def evaluate(_context = nil); end
|
270
|
+
def initialize(input = nil); end
|
271
|
+
def result(_binding = nil); end
|
272
|
+
def src; end
|
273
|
+
end
|
274
|
+
class Erubis::PI::TinyEruby
|
275
|
+
def convert(input); end
|
276
|
+
def evaluate(_context = nil); end
|
277
|
+
def initialize(input = nil, options = nil); end
|
278
|
+
def result(_binding = nil); end
|
279
|
+
def src; end
|
280
|
+
end
|
@@ -0,0 +1,521 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/haml/all/haml.rbi
|
9
|
+
#
|
10
|
+
# haml-5.2.1
|
11
|
+
|
12
|
+
module Haml
|
13
|
+
def self.init_rails(*args); end
|
14
|
+
end
|
15
|
+
module Haml::Util
|
16
|
+
def balance(scanner, start, finish, count = nil); end
|
17
|
+
def check_encoding(str); end
|
18
|
+
def check_haml_encoding(str, &block); end
|
19
|
+
def contains_interpolation?(str); end
|
20
|
+
def handle_interpolation(str); end
|
21
|
+
def html_safe(text); end
|
22
|
+
def human_indentation(indentation); end
|
23
|
+
def inspect_obj(obj); end
|
24
|
+
def parse_haml_magic_comment(str); end
|
25
|
+
def rails_xss_safe?; end
|
26
|
+
def silence_warnings; end
|
27
|
+
def try_parse_haml_emacs_magic_comment(scanner); end
|
28
|
+
def unescape_interpolation(str, escape_html = nil); end
|
29
|
+
extend Haml::Util
|
30
|
+
end
|
31
|
+
class Haml::Parser
|
32
|
+
def balance(*args); end
|
33
|
+
def balance_tokens(buf, start, finish, count: nil); end
|
34
|
+
def block_keyword(text); end
|
35
|
+
def block_opened?; end
|
36
|
+
def call(template); end
|
37
|
+
def check_push_script_stack(keyword); end
|
38
|
+
def close; end
|
39
|
+
def close_filter(_); end
|
40
|
+
def close_flat_section; end
|
41
|
+
def close_haml_comment(_); end
|
42
|
+
def close_script(node); end
|
43
|
+
def close_silent_script(node); end
|
44
|
+
def closes_flat?(line); end
|
45
|
+
def comment(text); end
|
46
|
+
def compute_tabs(line); end
|
47
|
+
def continuation_script?(text); end
|
48
|
+
def div(line); end
|
49
|
+
def doctype(text); end
|
50
|
+
def filter(name); end
|
51
|
+
def filter_opened?; end
|
52
|
+
def flat?; end
|
53
|
+
def flat_script(line, escape_html = nil); end
|
54
|
+
def haml_comment(text); end
|
55
|
+
def handle_multiline(line); end
|
56
|
+
def handle_ruby_multiline(line); end
|
57
|
+
def initialize(options); end
|
58
|
+
def is_multiline?(text); end
|
59
|
+
def is_ruby_multiline?(text); end
|
60
|
+
def mid_block_keyword?(text); end
|
61
|
+
def next_line; end
|
62
|
+
def parse_new_attribute(scanner); end
|
63
|
+
def parse_new_attributes(text); end
|
64
|
+
def parse_old_attributes(text); end
|
65
|
+
def parse_static_hash(text); end
|
66
|
+
def parse_tag(text); end
|
67
|
+
def plain(line, escape_html = nil); end
|
68
|
+
def process_indent(line); end
|
69
|
+
def process_line(line); end
|
70
|
+
def push(node); end
|
71
|
+
def root; end
|
72
|
+
def script(line, escape_html = nil, preserve = nil); end
|
73
|
+
def self.parse_class_and_id(list); end
|
74
|
+
def silent_script(line); end
|
75
|
+
def tag(line); end
|
76
|
+
include Haml::Util
|
77
|
+
end
|
78
|
+
class Haml::Parser::Line < Struct
|
79
|
+
def eod; end
|
80
|
+
def eod=(_); end
|
81
|
+
def eod?; end
|
82
|
+
def full; end
|
83
|
+
def full=(_); end
|
84
|
+
def index; end
|
85
|
+
def index=(_); end
|
86
|
+
def parser; end
|
87
|
+
def parser=(_); end
|
88
|
+
def self.[](*arg0); end
|
89
|
+
def self.inspect; end
|
90
|
+
def self.members; end
|
91
|
+
def self.new(*arg0); end
|
92
|
+
def strip!(from); end
|
93
|
+
def tabs; end
|
94
|
+
def text; end
|
95
|
+
def text=(_); end
|
96
|
+
def whitespace; end
|
97
|
+
def whitespace=(_); end
|
98
|
+
end
|
99
|
+
class Haml::Parser::ParseNode < Struct
|
100
|
+
def children; end
|
101
|
+
def children=(_); end
|
102
|
+
def initialize(*args); end
|
103
|
+
def inspect; end
|
104
|
+
def line; end
|
105
|
+
def line=(_); end
|
106
|
+
def parent; end
|
107
|
+
def parent=(_); end
|
108
|
+
def self.[](*arg0); end
|
109
|
+
def self.inspect; end
|
110
|
+
def self.members; end
|
111
|
+
def self.new(*arg0); end
|
112
|
+
def type; end
|
113
|
+
def type=(_); end
|
114
|
+
def value; end
|
115
|
+
def value=(_); end
|
116
|
+
end
|
117
|
+
class Haml::Parser::DynamicAttributes < Struct
|
118
|
+
def new; end
|
119
|
+
def new=(_); end
|
120
|
+
def old; end
|
121
|
+
def old=(value); end
|
122
|
+
def self.[](*arg0); end
|
123
|
+
def self.inspect; end
|
124
|
+
def self.members; end
|
125
|
+
def self.new(*arg0); end
|
126
|
+
def stripped_old; end
|
127
|
+
def to_literal; end
|
128
|
+
end
|
129
|
+
module Haml::AttributeBuilder
|
130
|
+
def self.build_attributes(is_html, attr_wrapper, escape_attrs, hyphenate_data_attrs, attributes = nil); end
|
131
|
+
def self.build_data_keys(data_hash, hyphenate, attr_name = nil); end
|
132
|
+
def self.filter_and_join(value, separator); end
|
133
|
+
def self.flatten_data_attributes(data, key, join_char, seen = nil); end
|
134
|
+
def self.merge_attributes!(to, from); end
|
135
|
+
def self.merge_value(key, to, from); end
|
136
|
+
def self.merge_values(key, *values); end
|
137
|
+
def self.verify_attribute_names!(attribute_names); end
|
138
|
+
end
|
139
|
+
module Haml::AttributeParser
|
140
|
+
def self.available?; end
|
141
|
+
def self.each_attribute(hash_literal, &block); end
|
142
|
+
def self.each_balanced_tokens(tokens, &block); end
|
143
|
+
def self.expect_string_end!(token); end
|
144
|
+
def self.hash_literal?(exp); end
|
145
|
+
def self.parse(exp); end
|
146
|
+
def self.shift_hash_rocket!(tokens); end
|
147
|
+
def self.shift_key!(tokens); end
|
148
|
+
end
|
149
|
+
class Haml::AttributeParser::UnexpectedTokenError < StandardError
|
150
|
+
end
|
151
|
+
class Haml::AttributeParser::UnexpectedKeyError < StandardError
|
152
|
+
end
|
153
|
+
class Haml::AttributeCompiler
|
154
|
+
def attr_literal(attr); end
|
155
|
+
def build_attribute_values(attributes, parsed_hashes); end
|
156
|
+
def compile(attributes, object_ref, dynamic_attributes); end
|
157
|
+
def compile_attribute(key, values); end
|
158
|
+
def compile_attribute_values(values); end
|
159
|
+
def compile_common_attribute(key, values); end
|
160
|
+
def compile_id_or_class_attribute(id_or_class, values); end
|
161
|
+
def compile_runtime_build(attributes, object_ref, dynamic_attributes); end
|
162
|
+
def frozen_string(str); end
|
163
|
+
def group_values_for_sort(values); end
|
164
|
+
def initialize(options); end
|
165
|
+
def merged_value(key, values); end
|
166
|
+
def runtime_build(values); end
|
167
|
+
def static_build(values); end
|
168
|
+
def to_literal(value); end
|
169
|
+
def true_value(key); end
|
170
|
+
def unique_name; end
|
171
|
+
end
|
172
|
+
class Haml::AttributeCompiler::AttributeValue < Struct
|
173
|
+
def key; end
|
174
|
+
def key=(_); end
|
175
|
+
def self.[](*arg0); end
|
176
|
+
def self.inspect; end
|
177
|
+
def self.members; end
|
178
|
+
def self.new(*arg0); end
|
179
|
+
def type; end
|
180
|
+
def type=(_); end
|
181
|
+
def value; end
|
182
|
+
def value=(_); end
|
183
|
+
end
|
184
|
+
module Haml::TempleLineCounter
|
185
|
+
def self.count_lines(exp); end
|
186
|
+
end
|
187
|
+
class Haml::TempleLineCounter::UnexpectedExpression < StandardError
|
188
|
+
end
|
189
|
+
class Haml::Compiler
|
190
|
+
def build_script_formatter(text, opts); end
|
191
|
+
def call(node); end
|
192
|
+
def compile(node); end
|
193
|
+
def compile_comment; end
|
194
|
+
def compile_doctype; end
|
195
|
+
def compile_filter; end
|
196
|
+
def compile_haml_comment; end
|
197
|
+
def compile_plain; end
|
198
|
+
def compile_root; end
|
199
|
+
def compile_script(&block); end
|
200
|
+
def compile_silent_script; end
|
201
|
+
def compile_tag; end
|
202
|
+
def flush_merged_text; end
|
203
|
+
def initialize(options); end
|
204
|
+
def nuke_inner_whitespace?(node); end
|
205
|
+
def options; end
|
206
|
+
def options=(arg0); end
|
207
|
+
def push_generated_script(text); end
|
208
|
+
def push_script(text, opts = nil); end
|
209
|
+
def push_silent(text, can_suppress = nil); end
|
210
|
+
def push_temple(temple); end
|
211
|
+
def push_text(text); end
|
212
|
+
def resolve_newlines; end
|
213
|
+
def rstrip_buffer!(index = nil); end
|
214
|
+
def text_for_doctype; end
|
215
|
+
include Haml::Util
|
216
|
+
end
|
217
|
+
class Haml::Options
|
218
|
+
def [](key); end
|
219
|
+
def []=(key, value); end
|
220
|
+
def attr_wrapper; end
|
221
|
+
def attr_wrapper=(value); end
|
222
|
+
def autoclose; end
|
223
|
+
def autoclose=(arg0); end
|
224
|
+
def cdata; end
|
225
|
+
def cdata=(arg0); end
|
226
|
+
def compiler_class; end
|
227
|
+
def compiler_class=(arg0); end
|
228
|
+
def defaults; end
|
229
|
+
def encoding; end
|
230
|
+
def encoding=(value); end
|
231
|
+
def escape_attrs; end
|
232
|
+
def escape_attrs=(arg0); end
|
233
|
+
def escape_attrs?; end
|
234
|
+
def escape_filter_interpolations; end
|
235
|
+
def escape_filter_interpolations=(arg0); end
|
236
|
+
def escape_html; end
|
237
|
+
def escape_html=(arg0); end
|
238
|
+
def filename; end
|
239
|
+
def filename=(arg0); end
|
240
|
+
def filters; end
|
241
|
+
def filters=(arg0); end
|
242
|
+
def for_buffer; end
|
243
|
+
def format; end
|
244
|
+
def format=(value); end
|
245
|
+
def html4?; end
|
246
|
+
def html5?; end
|
247
|
+
def html?; end
|
248
|
+
def hyphenate_data_attrs; end
|
249
|
+
def hyphenate_data_attrs=(arg0); end
|
250
|
+
def hyphenate_data_attrs?; end
|
251
|
+
def initialize(values = nil); end
|
252
|
+
def line; end
|
253
|
+
def line=(arg0); end
|
254
|
+
def mime_type; end
|
255
|
+
def mime_type=(arg0); end
|
256
|
+
def parser_class; end
|
257
|
+
def parser_class=(arg0); end
|
258
|
+
def preserve; end
|
259
|
+
def preserve=(arg0); end
|
260
|
+
def remove_whitespace; end
|
261
|
+
def remove_whitespace=(arg0); end
|
262
|
+
def remove_whitespace?; end
|
263
|
+
def self.buffer_defaults; end
|
264
|
+
def self.buffer_option_keys; end
|
265
|
+
def self.defaults; end
|
266
|
+
def self.valid_formats; end
|
267
|
+
def self.wrap(options); end
|
268
|
+
def suppress_eval; end
|
269
|
+
def suppress_eval=(arg0); end
|
270
|
+
def suppress_eval?; end
|
271
|
+
def trace; end
|
272
|
+
def trace=(arg0); end
|
273
|
+
def xhtml?; end
|
274
|
+
end
|
275
|
+
module Haml::Helpers
|
276
|
+
def block_is_haml?(block); end
|
277
|
+
def capture_haml(*args, &block); end
|
278
|
+
def escape_once(text); end
|
279
|
+
def escape_once_without_haml_xss(text); end
|
280
|
+
def find_and_preserve(input = nil, tags = nil, &block); end
|
281
|
+
def flatten(input = nil, &block); end
|
282
|
+
def haml_bind_proc(&proc); end
|
283
|
+
def haml_buffer; end
|
284
|
+
def haml_concat(text = nil); end
|
285
|
+
def haml_indent; end
|
286
|
+
def haml_internal_concat(text = nil, newline = nil, indent = nil); end
|
287
|
+
def haml_internal_concat_raw(text = nil, newline = nil, indent = nil); end
|
288
|
+
def haml_tag(name, *rest, &block); end
|
289
|
+
def haml_tag_if(condition, *tag); end
|
290
|
+
def html_attrs(lang = nil); end
|
291
|
+
def html_escape(text); end
|
292
|
+
def html_escape_without_haml_xss(text); end
|
293
|
+
def init_haml_helpers; end
|
294
|
+
def is_haml?; end
|
295
|
+
def list_of(enum, opts = nil, &block); end
|
296
|
+
def merge_name_and_attributes(name, attributes_hash = nil); end
|
297
|
+
def non_haml; end
|
298
|
+
def precede(str, &block); end
|
299
|
+
def preserve(input = nil, &block); end
|
300
|
+
def self.action_view?; end
|
301
|
+
def succeed(str, &block); end
|
302
|
+
def surround(front, back = nil, &block); end
|
303
|
+
def tab_down(i = nil); end
|
304
|
+
def tab_up(i = nil); end
|
305
|
+
def with_haml_buffer(buffer); end
|
306
|
+
def with_tabs(i); end
|
307
|
+
extend Haml::Helpers
|
308
|
+
end
|
309
|
+
class Haml::Helpers::ErrorReturn
|
310
|
+
def initialize(method); end
|
311
|
+
def inspect; end
|
312
|
+
def to_s; end
|
313
|
+
end
|
314
|
+
class Object < BasicObject
|
315
|
+
def is_haml?; end
|
316
|
+
end
|
317
|
+
class Haml::Buffer
|
318
|
+
def active=(arg0); end
|
319
|
+
def active?; end
|
320
|
+
def adjust_tabs(tab_change); end
|
321
|
+
def attributes(class_id, obj_ref, *attributes_hashes); end
|
322
|
+
def buffer; end
|
323
|
+
def buffer=(arg0); end
|
324
|
+
def capture_position; end
|
325
|
+
def capture_position=(arg0); end
|
326
|
+
def fix_textareas!(input); end
|
327
|
+
def html4?; end
|
328
|
+
def html5?; end
|
329
|
+
def html?; end
|
330
|
+
def initialize(upper = nil, options = nil); end
|
331
|
+
def new_encoded_string; end
|
332
|
+
def options; end
|
333
|
+
def options=(arg0); end
|
334
|
+
def parse_object_ref(ref); end
|
335
|
+
def push_text(text, tab_change, dont_tab_up); end
|
336
|
+
def rstrip!; end
|
337
|
+
def tabs(count = nil); end
|
338
|
+
def tabulation; end
|
339
|
+
def tabulation=(val); end
|
340
|
+
def toplevel?; end
|
341
|
+
def underscore(camel_cased_word); end
|
342
|
+
def upper; end
|
343
|
+
def upper=(arg0); end
|
344
|
+
def xhtml?; end
|
345
|
+
include Haml::Helpers
|
346
|
+
include Haml::Util
|
347
|
+
end
|
348
|
+
module Haml::Filters
|
349
|
+
def defined; end
|
350
|
+
def register_tilt_filter(name, options = nil); end
|
351
|
+
def remove_filter(name); end
|
352
|
+
extend Haml::Filters
|
353
|
+
end
|
354
|
+
module Haml::Filters::Base
|
355
|
+
def compile(compiler, text); end
|
356
|
+
def internal_compile(*args); end
|
357
|
+
def render(_text); end
|
358
|
+
def render_with_options(text, _options); end
|
359
|
+
def self.included(base); end
|
360
|
+
end
|
361
|
+
module Haml::Filters::Plain
|
362
|
+
def render(text); end
|
363
|
+
extend Haml::Filters::Plain
|
364
|
+
include Haml::Filters::Base
|
365
|
+
end
|
366
|
+
module Haml::Filters::Javascript
|
367
|
+
def render_with_options(text, options); end
|
368
|
+
extend Haml::Filters::Javascript
|
369
|
+
include Haml::Filters::Base
|
370
|
+
end
|
371
|
+
module Haml::Filters::Css
|
372
|
+
def render_with_options(text, options); end
|
373
|
+
extend Haml::Filters::Css
|
374
|
+
include Haml::Filters::Base
|
375
|
+
end
|
376
|
+
module Haml::Filters::Cdata
|
377
|
+
def render(text); end
|
378
|
+
extend Haml::Filters::Cdata
|
379
|
+
include Haml::Filters::Base
|
380
|
+
end
|
381
|
+
module Haml::Filters::Escaped
|
382
|
+
def render(text); end
|
383
|
+
extend Haml::Filters::Escaped
|
384
|
+
include Haml::Filters::Base
|
385
|
+
end
|
386
|
+
module Haml::Filters::Ruby
|
387
|
+
def compile(compiler, text); end
|
388
|
+
extend Haml::Filters::Ruby
|
389
|
+
include Haml::Filters::Base
|
390
|
+
end
|
391
|
+
module Haml::Filters::Preserve
|
392
|
+
def render(text); end
|
393
|
+
extend Haml::Filters::Preserve
|
394
|
+
include Haml::Filters::Base
|
395
|
+
end
|
396
|
+
module Haml::Filters::TiltFilter
|
397
|
+
def options; end
|
398
|
+
def options=(arg0); end
|
399
|
+
def self.extended(base); end
|
400
|
+
def template_class; end
|
401
|
+
def template_class=(arg0); end
|
402
|
+
def tilt_extension; end
|
403
|
+
def tilt_extension=(arg0); end
|
404
|
+
extend Haml::Filters::TiltFilter
|
405
|
+
end
|
406
|
+
module Haml::Filters::PrecompiledTiltFilter
|
407
|
+
def compile(compiler, text); end
|
408
|
+
def precompiled(text); end
|
409
|
+
end
|
410
|
+
module Haml::Filters::Sass
|
411
|
+
def self.render_with_options(text, compiler_options); end
|
412
|
+
extend Haml::Filters::Css
|
413
|
+
extend Haml::Filters::Sass
|
414
|
+
extend Haml::Filters::TiltFilter
|
415
|
+
include Haml::Filters::Base
|
416
|
+
end
|
417
|
+
module Haml::Filters::Scss
|
418
|
+
def self.render_with_options(text, compiler_options); end
|
419
|
+
extend Haml::Filters::Css
|
420
|
+
extend Haml::Filters::Scss
|
421
|
+
extend Haml::Filters::TiltFilter
|
422
|
+
include Haml::Filters::Base
|
423
|
+
end
|
424
|
+
module Haml::Filters::Less
|
425
|
+
def self.render_with_options(text, compiler_options); end
|
426
|
+
extend Haml::Filters::Css
|
427
|
+
extend Haml::Filters::Less
|
428
|
+
extend Haml::Filters::TiltFilter
|
429
|
+
include Haml::Filters::Base
|
430
|
+
end
|
431
|
+
module Haml::Filters::Markdown
|
432
|
+
def self.render_with_options(text, compiler_options); end
|
433
|
+
extend Haml::Filters::Markdown
|
434
|
+
extend Haml::Filters::Plain
|
435
|
+
extend Haml::Filters::TiltFilter
|
436
|
+
include Haml::Filters::Base
|
437
|
+
end
|
438
|
+
module Haml::Filters::Erb
|
439
|
+
def self.precompiled(text); end
|
440
|
+
def self.render_with_options(text, compiler_options); end
|
441
|
+
extend Haml::Filters::Erb
|
442
|
+
extend Haml::Filters::Plain
|
443
|
+
extend Haml::Filters::PrecompiledTiltFilter
|
444
|
+
extend Haml::Filters::TiltFilter
|
445
|
+
include Haml::Filters::Base
|
446
|
+
end
|
447
|
+
module Haml::Filters::Coffee
|
448
|
+
def self.render_with_options(text, compiler_options); end
|
449
|
+
extend Haml::Filters::Coffee
|
450
|
+
extend Haml::Filters::Javascript
|
451
|
+
extend Haml::Filters::TiltFilter
|
452
|
+
include Haml::Filters::Base
|
453
|
+
end
|
454
|
+
class Haml::Error < StandardError
|
455
|
+
def initialize(message = nil, line = nil); end
|
456
|
+
def line; end
|
457
|
+
def self.message(key, *args); end
|
458
|
+
end
|
459
|
+
class Haml::SyntaxError < Haml::Error
|
460
|
+
end
|
461
|
+
class Haml::InvalidAttributeNameError < Haml::SyntaxError
|
462
|
+
end
|
463
|
+
class Haml::Escapable < Temple::Filter
|
464
|
+
def escape(value); end
|
465
|
+
def escape_code(value); end
|
466
|
+
def escape_once(value); end
|
467
|
+
def escape_once_code(value); end
|
468
|
+
def initialize(*arg0); end
|
469
|
+
def on_dynamic(value); end
|
470
|
+
def on_escape(flag, exp); end
|
471
|
+
def on_static(value); end
|
472
|
+
end
|
473
|
+
class Haml::Escapable::EscapeSafeBuffer < Struct
|
474
|
+
def self.[](*arg0); end
|
475
|
+
def self.inspect; end
|
476
|
+
def self.members; end
|
477
|
+
def self.new(*arg0); end
|
478
|
+
def value; end
|
479
|
+
def value=(_); end
|
480
|
+
end
|
481
|
+
class Haml::Generator
|
482
|
+
def call(exp); end
|
483
|
+
def concat(str); end
|
484
|
+
def on_code(exp); end
|
485
|
+
def on_dynamic(code); end
|
486
|
+
def on_multi(*exp); end
|
487
|
+
def on_newline; end
|
488
|
+
def on_static(text); end
|
489
|
+
extend Temple::Mixins::ClassOptions
|
490
|
+
extend Temple::Mixins::ThreadOptions
|
491
|
+
include Temple::Mixins::CompiledDispatcher
|
492
|
+
include Temple::Mixins::Options
|
493
|
+
end
|
494
|
+
class Haml::TempleEngine < Temple::Engine
|
495
|
+
def compile(template); end
|
496
|
+
def initialize_encoding(template, given_value); end
|
497
|
+
def inspect_obj(obj); end
|
498
|
+
def locals_code(names); end
|
499
|
+
def precompiled; end
|
500
|
+
def precompiled_method_return_value; end
|
501
|
+
def precompiled_with_ambles(local_names, after_preamble: nil); end
|
502
|
+
def precompiled_with_return_value; end
|
503
|
+
end
|
504
|
+
class Haml::Engine
|
505
|
+
def compiler; end
|
506
|
+
def def_method(object, name, *local_names); end
|
507
|
+
def indentation; end
|
508
|
+
def indentation=(arg0); end
|
509
|
+
def initialize(template, options = nil); end
|
510
|
+
def options; end
|
511
|
+
def options=(arg0); end
|
512
|
+
def options_for_buffer; end
|
513
|
+
def precompiled(*args, &block); end
|
514
|
+
def precompiled_method_return_value(*args, &block); end
|
515
|
+
def render(scope = nil, locals = nil, &block); end
|
516
|
+
def render_proc(scope = nil, *local_names); end
|
517
|
+
def set_locals(locals, scope, scope_object); end
|
518
|
+
def to_html(scope = nil, locals = nil, &block); end
|
519
|
+
extend Forwardable
|
520
|
+
include Haml::Util
|
521
|
+
end
|