shotgrid_api_ruby 0.2.0.4 → 0.2.0.6
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 +4 -4
- data/.github/workflows/test_and_publish.yml +3 -3
- data/.github/workflows/test_only.yml +7 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +54 -2
- data/Gemfile +12 -0
- data/Gemfile.lock +108 -93
- data/bin/prettirun +1 -1
- data/docs/ShotgridApiRuby/Auth/Validator.html +4 -4
- data/docs/ShotgridApiRuby/Auth.html +4 -4
- data/docs/ShotgridApiRuby/Client.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Params/TooComplexFiltersError.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Params.html +41 -41
- data/docs/ShotgridApiRuby/Entities/Schema.html +4 -4
- data/docs/ShotgridApiRuby/Entities/Summarize/Summary.html +8 -8
- data/docs/ShotgridApiRuby/Entities/Summarize.html +9 -9
- data/docs/ShotgridApiRuby/Entities.html +27 -27
- data/docs/ShotgridApiRuby/Entity.html +12 -12
- data/docs/ShotgridApiRuby/Preferences.html +4 -4
- data/docs/ShotgridApiRuby/ServerInfo.html +4 -4
- data/docs/ShotgridApiRuby/ShotgridCallError.html +4 -4
- data/docs/ShotgridApiRuby/Types.html +4 -4
- data/docs/ShotgridApiRuby.html +5 -5
- data/docs/_index.html +5 -5
- data/docs/file.README.html +4 -4
- data/docs/frames.html +1 -1
- data/docs/index.html +4 -4
- data/docs/top-level-namespace.html +4 -4
- data/lib/shotgrid_api_ruby/entities/params.rb +15 -18
- data/lib/shotgrid_api_ruby/entities/summarize.rb +4 -4
- data/lib/shotgrid_api_ruby/entities.rb +23 -23
- data/lib/shotgrid_api_ruby/version.rb +1 -1
- data/shotgrid_api_ruby.gemspec +3 -12
- data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +18676 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +533 -3
- data/sorbet/rbi/gems/backport@1.2.0.rbi +518 -4
- data/sorbet/rbi/gems/benchmark@0.2.1.rbi +588 -0
- data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +308 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +2065 -28
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +397 -4
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +2425 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.2.0.rbi +11570 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +335 -13
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +4 -4
- data/sorbet/rbi/gems/faker@3.1.0.rbi +13380 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +167 -11
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +94 -11
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +105 -11
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +118 -11
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +273 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +106 -11
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +92 -11
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +97 -11
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +106 -11
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +227 -0
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +2743 -0
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +8 -0
- data/sorbet/rbi/gems/formatador@1.1.0.rbi +8 -0
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +62 -4
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +558 -4
- data/sorbet/rbi/gems/guard@2.18.0.rbi +4 -4
- data/sorbet/rbi/gems/haml@6.1.1.rbi +1588 -0
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +893 -4
- data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +15 -4
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +129 -4
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
- data/sorbet/rbi/gems/listen@3.8.0.rbi +1181 -0
- data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +4 -4
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +202 -2
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +233 -0
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +4 -4
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/nokogiri@1.14.0.rbi +7250 -0
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +4 -4
- data/sorbet/rbi/gems/overcommit@0.60.0.rbi +2399 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.2.0.0.rbi +6964 -0
- data/sorbet/rbi/gems/prettier@3.2.2.rbi +22 -0
- data/sorbet/rbi/gems/prettier_print@1.2.0.rbi +8 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1171 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
- data/sorbet/rbi/gems/racc@1.6.2.rbi +154 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +408 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +2248 -13
- data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +8 -0
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +4 -4
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +8 -0
- data/sorbet/rbi/gems/regexp_parser@2.6.2.rbi +3481 -0
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +389 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4048 -3
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10809 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8109 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5308 -0
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1620 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +91 -0
- data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +387 -15
- data/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi +7019 -0
- data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +102 -4
- data/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi +3021 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +990 -0
- data/sorbet/rbi/gems/rubocop@1.44.1.rbi +54394 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +4 -4
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +4 -4
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +135 -5
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/solargraph@0.48.0.rbi +9146 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
- data/sorbet/rbi/gems/syntax_tree-haml@3.0.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree-rbs@0.5.1.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@5.2.0.rbi +8 -0
- data/sorbet/rbi/gems/tapioca@0.10.5.rbi +3226 -0
- data/sorbet/rbi/gems/temple@0.10.0.rbi +1722 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/tilt@2.0.11.rbi +745 -0
- data/sorbet/rbi/gems/timecop@0.9.6.rbi +368 -0
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5914 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
- data/sorbet/rbi/gems/vcr@6.1.0.rbi +3020 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +17863 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +950 -0
- data/yarn.lock +3 -3
- metadata +71 -190
- data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +0 -3770
- data/sorbet/rbi/gems/benchmark@0.1.1.rbi +0 -65
- data/sorbet/rbi/gems/bundler-audit@0.8.0.rbi +0 -8
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -8
- data/sorbet/rbi/gems/dotenv@2.7.6.rbi +0 -88
- data/sorbet/rbi/gems/faker@2.19.0.rbi +0 -2513
- data/sorbet/rbi/gems/faraday@1.7.0.rbi +0 -783
- data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
- data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
- data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -8
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -584
- data/sorbet/rbi/gems/kramdown@2.3.1.rbi +0 -8
- data/sorbet/rbi/gems/listen@3.7.0.rbi +0 -476
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
- data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +0 -69
- data/sorbet/rbi/gems/nokogiri@1.12.3.rbi +0 -8
- data/sorbet/rbi/gems/overcommit@0.58.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -8
- data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1610
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1731
- data/sorbet/rbi/gems/prettier@1.6.1.rbi +0 -8
- data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +0 -461
- data/sorbet/rbi/gems/pry@0.13.1.rbi +0 -2553
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
- data/sorbet/rbi/gems/reverse_markdown@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2500
- data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
- data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -510
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -39
- data/sorbet/rbi/gems/rubocop-ast@1.11.0.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -8
- data/sorbet/rbi/gems/rubocop@1.20.0.rbi +0 -8
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
- data/sorbet/rbi/gems/solargraph@0.43.0.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.2.rbi +0 -1204
- data/sorbet/rbi/gems/tapioca@0.4.25.rbi +0 -1239
- data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -8
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
- data/sorbet/rbi/gems/tilt@2.0.10.rbi +0 -8
- data/sorbet/rbi/gems/timecop@0.9.4.rbi +0 -82
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -857
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -8
- data/sorbet/rbi/gems/vcr@6.0.0.rbi +0 -782
- data/sorbet/rbi/gems/yard-sorbet@0.5.3.rbi +0 -8
- data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -8
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
|
@@ -0,0 +1,1722 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `temple` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem temple`.
|
|
6
|
+
|
|
7
|
+
# source://temple//lib/temple/version.rb#1
|
|
8
|
+
module Temple; end
|
|
9
|
+
|
|
10
|
+
# ERB example implementation
|
|
11
|
+
#
|
|
12
|
+
# Example usage:
|
|
13
|
+
# Temple::ERB::Template.new { "<%= 'Hello, world!' %>" }.render
|
|
14
|
+
#
|
|
15
|
+
# source://temple//lib/temple.rb#28
|
|
16
|
+
module Temple::ERB; end
|
|
17
|
+
|
|
18
|
+
# Example ERB engine implementation
|
|
19
|
+
#
|
|
20
|
+
# @api public
|
|
21
|
+
#
|
|
22
|
+
# source://temple//lib/temple/erb/engine.rb#6
|
|
23
|
+
class Temple::ERB::Engine < ::Temple::Engine; end
|
|
24
|
+
|
|
25
|
+
# Example ERB parser
|
|
26
|
+
#
|
|
27
|
+
# @api public
|
|
28
|
+
#
|
|
29
|
+
# source://temple//lib/temple/erb/parser.rb#6
|
|
30
|
+
class Temple::ERB::Parser < ::Temple::Parser
|
|
31
|
+
# @api public
|
|
32
|
+
#
|
|
33
|
+
# source://temple//lib/temple/erb/parser.rb#9
|
|
34
|
+
def call(input); end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @api public
|
|
38
|
+
#
|
|
39
|
+
# source://temple//lib/temple/erb/parser.rb#7
|
|
40
|
+
Temple::ERB::Parser::ERB_PATTERN = T.let(T.unsafe(nil), Regexp)
|
|
41
|
+
|
|
42
|
+
# ERB Template class
|
|
43
|
+
#
|
|
44
|
+
# source://temple//lib/temple/erb/template.rb#0
|
|
45
|
+
class Temple::ERB::Template < ::Temple::Templates::Tilt; end
|
|
46
|
+
|
|
47
|
+
# ERB trimming like in erubis
|
|
48
|
+
# Deletes spaces around '<% %>' and leave spaces around '<%= %>'.
|
|
49
|
+
#
|
|
50
|
+
# @api public
|
|
51
|
+
#
|
|
52
|
+
# source://temple//lib/temple/erb/trimming.rb#6
|
|
53
|
+
class Temple::ERB::Trimming < ::Temple::Filter
|
|
54
|
+
# @api public
|
|
55
|
+
#
|
|
56
|
+
# source://temple//lib/temple/erb/trimming.rb#9
|
|
57
|
+
def on_multi(*exps); end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# An engine is simply a chain of compilers (that often includes a parser,
|
|
61
|
+
# some filters and a generator).
|
|
62
|
+
#
|
|
63
|
+
# class MyEngine < Temple::Engine
|
|
64
|
+
# # First run MyParser, passing the :strict option
|
|
65
|
+
# use MyParser, :strict
|
|
66
|
+
#
|
|
67
|
+
# # Then a custom filter
|
|
68
|
+
# use MyFilter
|
|
69
|
+
#
|
|
70
|
+
# # Then some general optimizations filters
|
|
71
|
+
# filter :MultiFlattener
|
|
72
|
+
# filter :StaticMerger
|
|
73
|
+
# filter :DynamicInliner
|
|
74
|
+
#
|
|
75
|
+
# # Finally the generator
|
|
76
|
+
# generator :ArrayBuffer, :buffer
|
|
77
|
+
# end
|
|
78
|
+
#
|
|
79
|
+
# class SpecialEngine < MyEngine
|
|
80
|
+
# append MyCodeOptimizer
|
|
81
|
+
# before :ArrayBuffer, Temple::Filters::Validator
|
|
82
|
+
# replace :ArrayBuffer, Temple::Generators::RailsOutputBuffer
|
|
83
|
+
# end
|
|
84
|
+
#
|
|
85
|
+
# engine = MyEngine.new(strict: "For MyParser")
|
|
86
|
+
# engine.call(something)
|
|
87
|
+
#
|
|
88
|
+
# @api public
|
|
89
|
+
#
|
|
90
|
+
# source://temple//lib/temple/engine.rb#31
|
|
91
|
+
class Temple::Engine
|
|
92
|
+
include ::Temple::Mixins::Options
|
|
93
|
+
include ::Temple::Mixins::EngineDSL
|
|
94
|
+
extend ::Temple::Mixins::ClassOptions
|
|
95
|
+
extend ::Temple::Mixins::ThreadOptions
|
|
96
|
+
extend ::Temple::Mixins::EngineDSL
|
|
97
|
+
|
|
98
|
+
# @api public
|
|
99
|
+
# @return [Engine] a new instance of Engine
|
|
100
|
+
#
|
|
101
|
+
# source://temple//lib/temple/engine.rb#44
|
|
102
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
103
|
+
|
|
104
|
+
# @api public
|
|
105
|
+
#
|
|
106
|
+
# source://temple//lib/temple/engine.rb#49
|
|
107
|
+
def call(input); end
|
|
108
|
+
|
|
109
|
+
# @api public
|
|
110
|
+
#
|
|
111
|
+
# source://temple//lib/temple/engine.rb#38
|
|
112
|
+
def chain; end
|
|
113
|
+
|
|
114
|
+
protected
|
|
115
|
+
|
|
116
|
+
# @api public
|
|
117
|
+
#
|
|
118
|
+
# source://temple//lib/temple/engine.rb#59
|
|
119
|
+
def call_chain; end
|
|
120
|
+
|
|
121
|
+
# @api public
|
|
122
|
+
#
|
|
123
|
+
# source://temple//lib/temple/engine.rb#55
|
|
124
|
+
def chain_modified!; end
|
|
125
|
+
|
|
126
|
+
class << self
|
|
127
|
+
# @api public
|
|
128
|
+
#
|
|
129
|
+
# source://temple//lib/temple/engine.rb#40
|
|
130
|
+
def chain; end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Temple base filter
|
|
135
|
+
#
|
|
136
|
+
# @api public
|
|
137
|
+
#
|
|
138
|
+
# source://temple//lib/temple/filter.rb#4
|
|
139
|
+
class Temple::Filter
|
|
140
|
+
include ::Temple::Utils
|
|
141
|
+
include ::Temple::Mixins::CompiledDispatcher
|
|
142
|
+
include ::Temple::Mixins::CoreDispatcher
|
|
143
|
+
include ::Temple::Mixins::EscapeDispatcher
|
|
144
|
+
include ::Temple::Mixins::ControlFlowDispatcher
|
|
145
|
+
include ::Temple::Mixins::Dispatcher
|
|
146
|
+
include ::Temple::Mixins::Options
|
|
147
|
+
extend ::Temple::Mixins::ClassOptions
|
|
148
|
+
extend ::Temple::Mixins::ThreadOptions
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Exception raised if something bad happens in a Temple filter
|
|
152
|
+
#
|
|
153
|
+
# @api public
|
|
154
|
+
#
|
|
155
|
+
# source://temple//lib/temple/exceptions.rb#11
|
|
156
|
+
class Temple::FilterError < ::RuntimeError; end
|
|
157
|
+
|
|
158
|
+
# source://temple//lib/temple.rb#43
|
|
159
|
+
module Temple::Filters; end
|
|
160
|
+
|
|
161
|
+
# source://temple//lib/temple/filters/ambles.rb#3
|
|
162
|
+
class Temple::Filters::Ambles < ::Temple::Filter
|
|
163
|
+
# @return [Ambles] a new instance of Ambles
|
|
164
|
+
#
|
|
165
|
+
# source://temple//lib/temple/filters/ambles.rb#6
|
|
166
|
+
def initialize(*_arg0); end
|
|
167
|
+
|
|
168
|
+
# source://temple//lib/temple/filters/ambles.rb#12
|
|
169
|
+
def call(ast); end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# @api public
|
|
173
|
+
#
|
|
174
|
+
# source://temple//lib/temple/filters/code_merger.rb#4
|
|
175
|
+
class Temple::Filters::CodeMerger < ::Temple::Filter
|
|
176
|
+
# @api public
|
|
177
|
+
#
|
|
178
|
+
# source://temple//lib/temple/filters/code_merger.rb#5
|
|
179
|
+
def on_multi(*exps); end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Control flow filter which processes [:if, condition, yes-exp, no-exp]
|
|
183
|
+
# and [:block, code, content] expressions.
|
|
184
|
+
# This is useful for ruby code generation with lots of conditionals.
|
|
185
|
+
#
|
|
186
|
+
# @api public
|
|
187
|
+
#
|
|
188
|
+
# source://temple//lib/temple/filters/control_flow.rb#8
|
|
189
|
+
class Temple::Filters::ControlFlow < ::Temple::Filter
|
|
190
|
+
# @api public
|
|
191
|
+
#
|
|
192
|
+
# source://temple//lib/temple/filters/control_flow.rb#34
|
|
193
|
+
def on_block(code, exp); end
|
|
194
|
+
|
|
195
|
+
# @api public
|
|
196
|
+
#
|
|
197
|
+
# source://temple//lib/temple/filters/control_flow.rb#20
|
|
198
|
+
def on_case(arg, *cases); end
|
|
199
|
+
|
|
200
|
+
# @api public
|
|
201
|
+
#
|
|
202
|
+
# source://temple//lib/temple/filters/control_flow.rb#30
|
|
203
|
+
def on_cond(*cases); end
|
|
204
|
+
|
|
205
|
+
# @api public
|
|
206
|
+
#
|
|
207
|
+
# source://temple//lib/temple/filters/control_flow.rb#9
|
|
208
|
+
def on_if(condition, yes, no = T.unsafe(nil)); end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Inlines several static/dynamic into a single dynamic.
|
|
212
|
+
#
|
|
213
|
+
# @api public
|
|
214
|
+
#
|
|
215
|
+
# source://temple//lib/temple/filters/dynamic_inliner.rb#6
|
|
216
|
+
class Temple::Filters::DynamicInliner < ::Temple::Filter
|
|
217
|
+
# @api public
|
|
218
|
+
#
|
|
219
|
+
# source://temple//lib/temple/filters/dynamic_inliner.rb#7
|
|
220
|
+
def on_multi(*exps); end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Try to encode input string
|
|
224
|
+
#
|
|
225
|
+
# @api public
|
|
226
|
+
#
|
|
227
|
+
# source://temple//lib/temple/filters/encoding.rb#6
|
|
228
|
+
class Temple::Filters::Encoding < ::Temple::Parser
|
|
229
|
+
# @api public
|
|
230
|
+
#
|
|
231
|
+
# source://temple//lib/temple/filters/encoding.rb#9
|
|
232
|
+
def call(s); end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Erase expressions with a certain type
|
|
236
|
+
#
|
|
237
|
+
# @api public
|
|
238
|
+
#
|
|
239
|
+
# source://temple//lib/temple/filters/eraser.rb#6
|
|
240
|
+
class Temple::Filters::Eraser < ::Temple::Filter
|
|
241
|
+
# @api public
|
|
242
|
+
#
|
|
243
|
+
# source://temple//lib/temple/filters/eraser.rb#10
|
|
244
|
+
def compile(exp); end
|
|
245
|
+
|
|
246
|
+
protected
|
|
247
|
+
|
|
248
|
+
# @api public
|
|
249
|
+
# @return [Boolean]
|
|
250
|
+
#
|
|
251
|
+
# source://temple//lib/temple/filters/eraser.rb#17
|
|
252
|
+
def do?(list, exp); end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Escape dynamic or static expressions.
|
|
256
|
+
# This filter must be used after Temple::HTML::* and before the generators.
|
|
257
|
+
# It can be enclosed with Temple::Filters::DynamicInliner filters to
|
|
258
|
+
# reduce calls to Temple::Utils#escape_html.
|
|
259
|
+
#
|
|
260
|
+
# @api public
|
|
261
|
+
#
|
|
262
|
+
# source://temple//lib/temple/filters/escapable.rb#9
|
|
263
|
+
class Temple::Filters::Escapable < ::Temple::Filter
|
|
264
|
+
# @api public
|
|
265
|
+
# @return [Escapable] a new instance of Escapable
|
|
266
|
+
#
|
|
267
|
+
# source://temple//lib/temple/filters/escapable.rb#15
|
|
268
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
269
|
+
|
|
270
|
+
# @api public
|
|
271
|
+
#
|
|
272
|
+
# source://temple//lib/temple/filters/escapable.rb#35
|
|
273
|
+
def on_dynamic(value); end
|
|
274
|
+
|
|
275
|
+
# @api public
|
|
276
|
+
#
|
|
277
|
+
# source://temple//lib/temple/filters/escapable.rb#23
|
|
278
|
+
def on_escape(flag, exp); end
|
|
279
|
+
|
|
280
|
+
# @api public
|
|
281
|
+
#
|
|
282
|
+
# source://temple//lib/temple/filters/escapable.rb#31
|
|
283
|
+
def on_static(value); end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Flattens nested multi expressions
|
|
287
|
+
#
|
|
288
|
+
# @api public
|
|
289
|
+
#
|
|
290
|
+
# source://temple//lib/temple/filters/multi_flattener.rb#6
|
|
291
|
+
class Temple::Filters::MultiFlattener < ::Temple::Filter
|
|
292
|
+
# @api public
|
|
293
|
+
#
|
|
294
|
+
# source://temple//lib/temple/filters/multi_flattener.rb#7
|
|
295
|
+
def on_multi(*exps); end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Remove BOM from input string
|
|
299
|
+
#
|
|
300
|
+
# @api public
|
|
301
|
+
#
|
|
302
|
+
# source://temple//lib/temple/filters/remove_bom.rb#6
|
|
303
|
+
class Temple::Filters::RemoveBOM < ::Temple::Parser
|
|
304
|
+
# @api public
|
|
305
|
+
#
|
|
306
|
+
# source://temple//lib/temple/filters/remove_bom.rb#7
|
|
307
|
+
def call(s); end
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Convert [:dynamic, code] to [:static, text] if code is static Ruby expression.
|
|
311
|
+
#
|
|
312
|
+
# source://temple//lib/temple/filters/static_analyzer.rb#4
|
|
313
|
+
class Temple::Filters::StaticAnalyzer < ::Temple::Filter
|
|
314
|
+
# source://temple//lib/temple/filters/static_analyzer.rb#5
|
|
315
|
+
def call(exp); end
|
|
316
|
+
|
|
317
|
+
# source://temple//lib/temple/filters/static_analyzer.rb#14
|
|
318
|
+
def on_dynamic(code); end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Merges several statics into a single static. Example:
|
|
322
|
+
#
|
|
323
|
+
# [:multi,
|
|
324
|
+
# [:static, "Hello "],
|
|
325
|
+
# [:static, "World!"]]
|
|
326
|
+
#
|
|
327
|
+
# Compiles to:
|
|
328
|
+
#
|
|
329
|
+
# [:static, "Hello World!"]
|
|
330
|
+
#
|
|
331
|
+
# @api public
|
|
332
|
+
#
|
|
333
|
+
# source://temple//lib/temple/filters/static_merger.rb#14
|
|
334
|
+
class Temple::Filters::StaticMerger < ::Temple::Filter
|
|
335
|
+
# @api public
|
|
336
|
+
#
|
|
337
|
+
# source://temple//lib/temple/filters/static_merger.rb#15
|
|
338
|
+
def on_multi(*exps); end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Compile [:dynamic, "foo#{bar}"] to [:multi, [:static, 'foo'], [:dynamic, 'bar']]
|
|
342
|
+
#
|
|
343
|
+
# source://temple//lib/temple/filters/string_splitter.rb#9
|
|
344
|
+
class Temple::Filters::StringSplitter < ::Temple::Filter
|
|
345
|
+
# source://temple//lib/temple/filters/string_splitter.rb#88
|
|
346
|
+
def on_dynamic(code); end
|
|
347
|
+
|
|
348
|
+
private
|
|
349
|
+
|
|
350
|
+
# @return [Boolean]
|
|
351
|
+
#
|
|
352
|
+
# source://temple//lib/temple/filters/string_splitter.rb#106
|
|
353
|
+
def string_literal?(code); end
|
|
354
|
+
|
|
355
|
+
class << self
|
|
356
|
+
# `code` param must be valid string literal
|
|
357
|
+
#
|
|
358
|
+
# source://temple//lib/temple/filters/string_splitter.rb#13
|
|
359
|
+
def compile(code); end
|
|
360
|
+
|
|
361
|
+
private
|
|
362
|
+
|
|
363
|
+
# source://temple//lib/temple/filters/string_splitter.rb#41
|
|
364
|
+
def compile_tokens!(exps, tokens); end
|
|
365
|
+
|
|
366
|
+
# Some quotes are split-unsafe. Replace such quotes with null characters.
|
|
367
|
+
#
|
|
368
|
+
# source://temple//lib/temple/filters/string_splitter.rb#59
|
|
369
|
+
def escape_quotes(beg_str, end_str); end
|
|
370
|
+
|
|
371
|
+
# source://temple//lib/temple/filters/string_splitter.rb#68
|
|
372
|
+
def shift_balanced_embexpr(tokens); end
|
|
373
|
+
|
|
374
|
+
# source://temple//lib/temple/filters/string_splitter.rb#27
|
|
375
|
+
def strip_quotes!(tokens); end
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# source://temple//lib/temple/filters/string_splitter.rb#117
|
|
380
|
+
class Temple::Filters::StringSplitter::SyntaxChecker < ::Ripper
|
|
381
|
+
private
|
|
382
|
+
|
|
383
|
+
# @raise [ParseError]
|
|
384
|
+
#
|
|
385
|
+
# source://temple//lib/temple/filters/string_splitter.rb#129
|
|
386
|
+
def on_parse_error(*_arg0); end
|
|
387
|
+
|
|
388
|
+
class << self
|
|
389
|
+
# @return [Boolean]
|
|
390
|
+
#
|
|
391
|
+
# source://temple//lib/temple/filters/string_splitter.rb#120
|
|
392
|
+
def syntax_error?(code); end
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# source://temple//lib/temple/filters/string_splitter.rb#118
|
|
397
|
+
class Temple::Filters::StringSplitter::SyntaxChecker::ParseError < ::StandardError; end
|
|
398
|
+
|
|
399
|
+
# Validates temple expression with given grammar
|
|
400
|
+
#
|
|
401
|
+
# @api public
|
|
402
|
+
#
|
|
403
|
+
# source://temple//lib/temple/filters/validator.rb#6
|
|
404
|
+
class Temple::Filters::Validator < ::Temple::Filter
|
|
405
|
+
# @api public
|
|
406
|
+
#
|
|
407
|
+
# source://temple//lib/temple/filters/validator.rb#9
|
|
408
|
+
def compile(exp); end
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Abstract generator base class
|
|
412
|
+
# Generators should inherit this class and
|
|
413
|
+
# compile the Core Abstraction to ruby code.
|
|
414
|
+
#
|
|
415
|
+
# @api public
|
|
416
|
+
#
|
|
417
|
+
# source://temple//lib/temple/generator.rb#7
|
|
418
|
+
class Temple::Generator
|
|
419
|
+
include ::Temple::Utils
|
|
420
|
+
include ::Temple::Mixins::CompiledDispatcher
|
|
421
|
+
include ::Temple::Mixins::Options
|
|
422
|
+
extend ::Temple::Mixins::ClassOptions
|
|
423
|
+
extend ::Temple::Mixins::ThreadOptions
|
|
424
|
+
|
|
425
|
+
# @api public
|
|
426
|
+
#
|
|
427
|
+
# source://temple//lib/temple/generator.rb#17
|
|
428
|
+
def call(exp); end
|
|
429
|
+
|
|
430
|
+
# @api public
|
|
431
|
+
#
|
|
432
|
+
# source://temple//lib/temple/generator.rb#37
|
|
433
|
+
def create_buffer; end
|
|
434
|
+
|
|
435
|
+
# @api public
|
|
436
|
+
# @raise [InvalidExpression]
|
|
437
|
+
#
|
|
438
|
+
# source://temple//lib/temple/generator.rb#44
|
|
439
|
+
def on(*exp); end
|
|
440
|
+
|
|
441
|
+
# @api public
|
|
442
|
+
#
|
|
443
|
+
# source://temple//lib/temple/generator.rb#56
|
|
444
|
+
def on_capture(name, exp); end
|
|
445
|
+
|
|
446
|
+
# @api public
|
|
447
|
+
#
|
|
448
|
+
# source://temple//lib/temple/generator.rb#68
|
|
449
|
+
def on_code(code); end
|
|
450
|
+
|
|
451
|
+
# @api public
|
|
452
|
+
#
|
|
453
|
+
# source://temple//lib/temple/generator.rb#64
|
|
454
|
+
def on_dynamic(code); end
|
|
455
|
+
|
|
456
|
+
# @api public
|
|
457
|
+
#
|
|
458
|
+
# source://temple//lib/temple/generator.rb#48
|
|
459
|
+
def on_multi(*exp); end
|
|
460
|
+
|
|
461
|
+
# @api public
|
|
462
|
+
#
|
|
463
|
+
# source://temple//lib/temple/generator.rb#52
|
|
464
|
+
def on_newline; end
|
|
465
|
+
|
|
466
|
+
# @api public
|
|
467
|
+
#
|
|
468
|
+
# source://temple//lib/temple/generator.rb#60
|
|
469
|
+
def on_static(text); end
|
|
470
|
+
|
|
471
|
+
# @api public
|
|
472
|
+
#
|
|
473
|
+
# source://temple//lib/temple/generator.rb#25
|
|
474
|
+
def postamble; end
|
|
475
|
+
|
|
476
|
+
# @api public
|
|
477
|
+
#
|
|
478
|
+
# source://temple//lib/temple/generator.rb#21
|
|
479
|
+
def preamble; end
|
|
480
|
+
|
|
481
|
+
# @api public
|
|
482
|
+
#
|
|
483
|
+
# source://temple//lib/temple/generator.rb#33
|
|
484
|
+
def restore_buffer; end
|
|
485
|
+
|
|
486
|
+
# @api public
|
|
487
|
+
#
|
|
488
|
+
# source://temple//lib/temple/generator.rb#40
|
|
489
|
+
def return_buffer; end
|
|
490
|
+
|
|
491
|
+
# @api public
|
|
492
|
+
#
|
|
493
|
+
# source://temple//lib/temple/generator.rb#29
|
|
494
|
+
def save_buffer; end
|
|
495
|
+
|
|
496
|
+
protected
|
|
497
|
+
|
|
498
|
+
# @api public
|
|
499
|
+
#
|
|
500
|
+
# source://temple//lib/temple/generator.rb#74
|
|
501
|
+
def buffer; end
|
|
502
|
+
|
|
503
|
+
# @api public
|
|
504
|
+
#
|
|
505
|
+
# source://temple//lib/temple/generator.rb#78
|
|
506
|
+
def capture_generator; end
|
|
507
|
+
|
|
508
|
+
# @api public
|
|
509
|
+
#
|
|
510
|
+
# source://temple//lib/temple/generator.rb#84
|
|
511
|
+
def concat(str); end
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# source://temple//lib/temple.rb#35
|
|
515
|
+
module Temple::Generators; end
|
|
516
|
+
|
|
517
|
+
# Implements an array buffer.
|
|
518
|
+
#
|
|
519
|
+
# _buf = []
|
|
520
|
+
# _buf << "static"
|
|
521
|
+
# _buf << dynamic
|
|
522
|
+
# _buf
|
|
523
|
+
#
|
|
524
|
+
# @api public
|
|
525
|
+
#
|
|
526
|
+
# source://temple//lib/temple/generators/array.rb#11
|
|
527
|
+
class Temple::Generators::Array < ::Temple::Generator
|
|
528
|
+
# @api public
|
|
529
|
+
#
|
|
530
|
+
# source://temple//lib/temple/generators/array.rb#12
|
|
531
|
+
def create_buffer; end
|
|
532
|
+
|
|
533
|
+
# @api public
|
|
534
|
+
#
|
|
535
|
+
# source://temple//lib/temple/generators/array.rb#16
|
|
536
|
+
def return_buffer; end
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# Just like Array, but calls #join on the array.
|
|
540
|
+
#
|
|
541
|
+
# _buf = []
|
|
542
|
+
# _buf << "static"
|
|
543
|
+
# _buf << dynamic
|
|
544
|
+
# _buf.join("")
|
|
545
|
+
#
|
|
546
|
+
# @api public
|
|
547
|
+
#
|
|
548
|
+
# source://temple//lib/temple/generators/array_buffer.rb#11
|
|
549
|
+
class Temple::Generators::ArrayBuffer < ::Temple::Generators::Array
|
|
550
|
+
# @api public
|
|
551
|
+
#
|
|
552
|
+
# source://temple//lib/temple/generators/array_buffer.rb#12
|
|
553
|
+
def call(exp); end
|
|
554
|
+
|
|
555
|
+
# @api public
|
|
556
|
+
#
|
|
557
|
+
# source://temple//lib/temple/generators/array_buffer.rb#23
|
|
558
|
+
def return_buffer; end
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Implements an ERB generator.
|
|
562
|
+
#
|
|
563
|
+
# @api public
|
|
564
|
+
#
|
|
565
|
+
# source://temple//lib/temple/generators/erb.rb#6
|
|
566
|
+
class Temple::Generators::ERB < ::Temple::Generator
|
|
567
|
+
# @api public
|
|
568
|
+
#
|
|
569
|
+
# source://temple//lib/temple/generators/erb.rb#7
|
|
570
|
+
def call(exp); end
|
|
571
|
+
|
|
572
|
+
# @api public
|
|
573
|
+
#
|
|
574
|
+
# source://temple//lib/temple/generators/erb.rb#15
|
|
575
|
+
def on_capture(name, exp); end
|
|
576
|
+
|
|
577
|
+
# @api public
|
|
578
|
+
#
|
|
579
|
+
# source://temple//lib/temple/generators/erb.rb#27
|
|
580
|
+
def on_code(code); end
|
|
581
|
+
|
|
582
|
+
# @api public
|
|
583
|
+
#
|
|
584
|
+
# source://temple//lib/temple/generators/erb.rb#23
|
|
585
|
+
def on_dynamic(code); end
|
|
586
|
+
|
|
587
|
+
# @api public
|
|
588
|
+
#
|
|
589
|
+
# source://temple//lib/temple/generators/erb.rb#11
|
|
590
|
+
def on_multi(*exp); end
|
|
591
|
+
|
|
592
|
+
# @api public
|
|
593
|
+
#
|
|
594
|
+
# source://temple//lib/temple/generators/erb.rb#19
|
|
595
|
+
def on_static(text); end
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Implements a rails output buffer.
|
|
599
|
+
#
|
|
600
|
+
# @output_buffer = ActiveSupport::SafeBuffer
|
|
601
|
+
# @output_buffer.safe_concat "static"
|
|
602
|
+
# @output_buffer.safe_concat dynamic.to_s
|
|
603
|
+
# @output_buffer
|
|
604
|
+
#
|
|
605
|
+
# @api public
|
|
606
|
+
#
|
|
607
|
+
# source://temple//lib/temple/generators/rails_output_buffer.rb#11
|
|
608
|
+
class Temple::Generators::RailsOutputBuffer < ::Temple::Generators::StringBuffer
|
|
609
|
+
# @api public
|
|
610
|
+
#
|
|
611
|
+
# source://temple//lib/temple/generators/rails_output_buffer.rb#17
|
|
612
|
+
def call(exp); end
|
|
613
|
+
|
|
614
|
+
# @api public
|
|
615
|
+
#
|
|
616
|
+
# source://temple//lib/temple/generators/rails_output_buffer.rb#29
|
|
617
|
+
def concat(str); end
|
|
618
|
+
|
|
619
|
+
# @api public
|
|
620
|
+
#
|
|
621
|
+
# source://temple//lib/temple/generators/rails_output_buffer.rb#21
|
|
622
|
+
def create_buffer; end
|
|
623
|
+
end
|
|
624
|
+
|
|
625
|
+
# Implements a string buffer.
|
|
626
|
+
#
|
|
627
|
+
# _buf = ''
|
|
628
|
+
# _buf << "static"
|
|
629
|
+
# _buf << dynamic.to_s
|
|
630
|
+
# _buf
|
|
631
|
+
#
|
|
632
|
+
# @api public
|
|
633
|
+
#
|
|
634
|
+
# source://temple//lib/temple/generators/string_buffer.rb#11
|
|
635
|
+
class Temple::Generators::StringBuffer < ::Temple::Generators::ArrayBuffer
|
|
636
|
+
# @api public
|
|
637
|
+
#
|
|
638
|
+
# source://temple//lib/temple/generators/string_buffer.rb#12
|
|
639
|
+
def create_buffer; end
|
|
640
|
+
|
|
641
|
+
# @api public
|
|
642
|
+
#
|
|
643
|
+
# source://temple//lib/temple/generators/string_buffer.rb#20
|
|
644
|
+
def on_dynamic(code); end
|
|
645
|
+
|
|
646
|
+
# @api public
|
|
647
|
+
#
|
|
648
|
+
# source://temple//lib/temple/generators/string_buffer.rb#16
|
|
649
|
+
def return_buffer; end
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
# Temple expression grammar which can be used to validate Temple expressions.
|
|
653
|
+
#
|
|
654
|
+
# Example:
|
|
655
|
+
# Temple::Grammar.match? [:static, 'Valid Temple Expression']
|
|
656
|
+
# Temple::Grammar.validate! [:multi, 'Invalid Temple Expression']
|
|
657
|
+
#
|
|
658
|
+
# See {file:EXPRESSIONS.md Expression documentation}.
|
|
659
|
+
#
|
|
660
|
+
# @api public
|
|
661
|
+
#
|
|
662
|
+
# source://temple//lib/temple/grammar.rb#11
|
|
663
|
+
module Temple::Grammar
|
|
664
|
+
extend ::Temple::Mixins::GrammarDSL
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
668
|
+
Temple::Grammar::Bool = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
669
|
+
|
|
670
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
671
|
+
Temple::Grammar::Case = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
672
|
+
|
|
673
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
674
|
+
Temple::Grammar::Condition = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
675
|
+
|
|
676
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
677
|
+
Temple::Grammar::EmptyExp = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
678
|
+
|
|
679
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
680
|
+
Temple::Grammar::Expression = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
681
|
+
|
|
682
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
683
|
+
Temple::Grammar::HTMLAttr = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
684
|
+
|
|
685
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#167
|
|
686
|
+
Temple::Grammar::HTMLIdentifier = T.let(T.unsafe(nil), Temple::Mixins::GrammarDSL::Root)
|
|
687
|
+
|
|
688
|
+
# source://temple//lib/temple.rb#59
|
|
689
|
+
module Temple::HTML; end
|
|
690
|
+
|
|
691
|
+
# This filter merges html attributes (e.g. used for id and class)
|
|
692
|
+
#
|
|
693
|
+
# @api public
|
|
694
|
+
#
|
|
695
|
+
# source://temple//lib/temple/html/attribute_merger.rb#5
|
|
696
|
+
class Temple::HTML::AttributeMerger < ::Temple::HTML::Filter
|
|
697
|
+
# @api public
|
|
698
|
+
#
|
|
699
|
+
# source://temple//lib/temple/html/attribute_merger.rb#8
|
|
700
|
+
def on_html_attrs(*attrs); end
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# This filter removes empty attributes
|
|
704
|
+
#
|
|
705
|
+
# @api public
|
|
706
|
+
#
|
|
707
|
+
# source://temple//lib/temple/html/attribute_remover.rb#5
|
|
708
|
+
class Temple::HTML::AttributeRemover < ::Temple::HTML::Filter
|
|
709
|
+
# @api public
|
|
710
|
+
# @raise [ArgumentError]
|
|
711
|
+
# @return [AttributeRemover] a new instance of AttributeRemover
|
|
712
|
+
#
|
|
713
|
+
# source://temple//lib/temple/html/attribute_remover.rb#8
|
|
714
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
715
|
+
|
|
716
|
+
# @api public
|
|
717
|
+
#
|
|
718
|
+
# source://temple//lib/temple/html/attribute_remover.rb#18
|
|
719
|
+
def on_html_attr(name, value); end
|
|
720
|
+
|
|
721
|
+
# @api public
|
|
722
|
+
#
|
|
723
|
+
# source://temple//lib/temple/html/attribute_remover.rb#14
|
|
724
|
+
def on_html_attrs(*attrs); end
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
# This filter sorts html attributes.
|
|
728
|
+
#
|
|
729
|
+
# @api public
|
|
730
|
+
#
|
|
731
|
+
# source://temple//lib/temple/html/attribute_sorter.rb#5
|
|
732
|
+
class Temple::HTML::AttributeSorter < ::Temple::HTML::Filter
|
|
733
|
+
# @api public
|
|
734
|
+
#
|
|
735
|
+
# source://temple//lib/temple/html/attribute_sorter.rb#8
|
|
736
|
+
def call(exp); end
|
|
737
|
+
|
|
738
|
+
# @api public
|
|
739
|
+
#
|
|
740
|
+
# source://temple//lib/temple/html/attribute_sorter.rb#12
|
|
741
|
+
def on_html_attrs(*attrs); end
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# @api private
|
|
745
|
+
#
|
|
746
|
+
# source://temple//lib/temple/html/dispatcher.rb#4
|
|
747
|
+
module Temple::HTML::Dispatcher
|
|
748
|
+
# @api private
|
|
749
|
+
#
|
|
750
|
+
# source://temple//lib/temple/html/dispatcher.rb#9
|
|
751
|
+
def on_html_attr(name, content); end
|
|
752
|
+
|
|
753
|
+
# @api private
|
|
754
|
+
#
|
|
755
|
+
# source://temple//lib/temple/html/dispatcher.rb#5
|
|
756
|
+
def on_html_attrs(*attrs); end
|
|
757
|
+
|
|
758
|
+
# @api private
|
|
759
|
+
#
|
|
760
|
+
# source://temple//lib/temple/html/dispatcher.rb#13
|
|
761
|
+
def on_html_comment(content); end
|
|
762
|
+
|
|
763
|
+
# @api private
|
|
764
|
+
#
|
|
765
|
+
# source://temple//lib/temple/html/dispatcher.rb#17
|
|
766
|
+
def on_html_condcomment(condition, content); end
|
|
767
|
+
|
|
768
|
+
# @api private
|
|
769
|
+
#
|
|
770
|
+
# source://temple//lib/temple/html/dispatcher.rb#21
|
|
771
|
+
def on_html_js(content); end
|
|
772
|
+
|
|
773
|
+
# @api private
|
|
774
|
+
#
|
|
775
|
+
# source://temple//lib/temple/html/dispatcher.rb#25
|
|
776
|
+
def on_html_tag(name, attrs, content = T.unsafe(nil)); end
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
# @api public
|
|
780
|
+
#
|
|
781
|
+
# source://temple//lib/temple/html/fast.rb#4
|
|
782
|
+
class Temple::HTML::Fast < ::Temple::HTML::Filter
|
|
783
|
+
# @api public
|
|
784
|
+
# @return [Fast] a new instance of Fast
|
|
785
|
+
#
|
|
786
|
+
# source://temple//lib/temple/html/fast.rb#36
|
|
787
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
788
|
+
|
|
789
|
+
# @api public
|
|
790
|
+
#
|
|
791
|
+
# source://temple//lib/temple/html/fast.rb#107
|
|
792
|
+
def on_html_attr(name, value); end
|
|
793
|
+
|
|
794
|
+
# @api public
|
|
795
|
+
#
|
|
796
|
+
# source://temple//lib/temple/html/fast.rb#103
|
|
797
|
+
def on_html_attrs(*attrs); end
|
|
798
|
+
|
|
799
|
+
# @api public
|
|
800
|
+
#
|
|
801
|
+
# source://temple//lib/temple/html/fast.rb#79
|
|
802
|
+
def on_html_comment(content); end
|
|
803
|
+
|
|
804
|
+
# @api public
|
|
805
|
+
#
|
|
806
|
+
# source://temple//lib/temple/html/fast.rb#86
|
|
807
|
+
def on_html_condcomment(condition, content); end
|
|
808
|
+
|
|
809
|
+
# @api public
|
|
810
|
+
#
|
|
811
|
+
# source://temple//lib/temple/html/fast.rb#65
|
|
812
|
+
def on_html_doctype(type); end
|
|
813
|
+
|
|
814
|
+
# @api public
|
|
815
|
+
#
|
|
816
|
+
# source://temple//lib/temple/html/fast.rb#118
|
|
817
|
+
def on_html_js(content); end
|
|
818
|
+
|
|
819
|
+
# @api public
|
|
820
|
+
#
|
|
821
|
+
# source://temple//lib/temple/html/fast.rb#93
|
|
822
|
+
def on_html_tag(name, attrs, content = T.unsafe(nil)); end
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# @api public
|
|
826
|
+
#
|
|
827
|
+
# source://temple//lib/temple/html/fast.rb#5
|
|
828
|
+
Temple::HTML::Fast::DOCTYPES = T.let(T.unsafe(nil), Hash)
|
|
829
|
+
|
|
830
|
+
# See http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
|
|
831
|
+
#
|
|
832
|
+
# @api public
|
|
833
|
+
#
|
|
834
|
+
# source://temple//lib/temple/html/fast.rb#29
|
|
835
|
+
Temple::HTML::Fast::HTML_VOID_ELEMENTS = T.let(T.unsafe(nil), Array)
|
|
836
|
+
|
|
837
|
+
# @api public
|
|
838
|
+
#
|
|
839
|
+
# source://temple//lib/temple/html/filter.rb#4
|
|
840
|
+
class Temple::HTML::Filter < ::Temple::Filter
|
|
841
|
+
include ::Temple::HTML::Dispatcher
|
|
842
|
+
|
|
843
|
+
# @api public
|
|
844
|
+
# @return [Boolean]
|
|
845
|
+
#
|
|
846
|
+
# source://temple//lib/temple/html/filter.rb#7
|
|
847
|
+
def contains_nonempty_static?(exp); end
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
# @api public
|
|
851
|
+
#
|
|
852
|
+
# source://temple//lib/temple/html/pretty.rb#4
|
|
853
|
+
class Temple::HTML::Pretty < ::Temple::HTML::Fast
|
|
854
|
+
# @api public
|
|
855
|
+
# @return [Pretty] a new instance of Pretty
|
|
856
|
+
#
|
|
857
|
+
# source://temple//lib/temple/html/pretty.rb#14
|
|
858
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
859
|
+
|
|
860
|
+
# @api public
|
|
861
|
+
#
|
|
862
|
+
# source://temple//lib/temple/html/pretty.rb#22
|
|
863
|
+
def call(exp); end
|
|
864
|
+
|
|
865
|
+
# @api public
|
|
866
|
+
#
|
|
867
|
+
# source://temple//lib/temple/html/pretty.rb#36
|
|
868
|
+
def on_dynamic(code); end
|
|
869
|
+
|
|
870
|
+
# @api public
|
|
871
|
+
#
|
|
872
|
+
# source://temple//lib/temple/html/pretty.rb#47
|
|
873
|
+
def on_html_comment(content); end
|
|
874
|
+
|
|
875
|
+
# @api public
|
|
876
|
+
#
|
|
877
|
+
# source://temple//lib/temple/html/pretty.rb#42
|
|
878
|
+
def on_html_doctype(type); end
|
|
879
|
+
|
|
880
|
+
# @api public
|
|
881
|
+
#
|
|
882
|
+
# source://temple//lib/temple/html/pretty.rb#54
|
|
883
|
+
def on_html_tag(name, attrs, content = T.unsafe(nil)); end
|
|
884
|
+
|
|
885
|
+
# @api public
|
|
886
|
+
#
|
|
887
|
+
# source://temple//lib/temple/html/pretty.rb#26
|
|
888
|
+
def on_static(content); end
|
|
889
|
+
|
|
890
|
+
protected
|
|
891
|
+
|
|
892
|
+
# @api public
|
|
893
|
+
#
|
|
894
|
+
# source://temple//lib/temple/html/pretty.rb#86
|
|
895
|
+
def indent; end
|
|
896
|
+
|
|
897
|
+
# @api public
|
|
898
|
+
#
|
|
899
|
+
# source://temple//lib/temple/html/pretty.rb#80
|
|
900
|
+
def preamble; end
|
|
901
|
+
|
|
902
|
+
# Return indentation before tag
|
|
903
|
+
#
|
|
904
|
+
# @api public
|
|
905
|
+
#
|
|
906
|
+
# source://temple//lib/temple/html/pretty.rb#91
|
|
907
|
+
def tag_indent(name); end
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
# Immutable map class which supports map merging
|
|
911
|
+
#
|
|
912
|
+
# @api public
|
|
913
|
+
#
|
|
914
|
+
# source://temple//lib/temple/map.rb#4
|
|
915
|
+
class Temple::ImmutableMap
|
|
916
|
+
include ::Enumerable
|
|
917
|
+
|
|
918
|
+
# @api public
|
|
919
|
+
# @return [ImmutableMap] a new instance of ImmutableMap
|
|
920
|
+
#
|
|
921
|
+
# source://temple//lib/temple/map.rb#7
|
|
922
|
+
def initialize(*map); end
|
|
923
|
+
|
|
924
|
+
# @api public
|
|
925
|
+
#
|
|
926
|
+
# source://temple//lib/temple/map.rb#15
|
|
927
|
+
def [](key); end
|
|
928
|
+
|
|
929
|
+
# @api public
|
|
930
|
+
#
|
|
931
|
+
# source://temple//lib/temple/map.rb#20
|
|
932
|
+
def each; end
|
|
933
|
+
|
|
934
|
+
# @api public
|
|
935
|
+
# @return [Boolean]
|
|
936
|
+
#
|
|
937
|
+
# source://temple//lib/temple/map.rb#11
|
|
938
|
+
def include?(key); end
|
|
939
|
+
|
|
940
|
+
# @api public
|
|
941
|
+
#
|
|
942
|
+
# source://temple//lib/temple/map.rb#24
|
|
943
|
+
def keys; end
|
|
944
|
+
|
|
945
|
+
# @api public
|
|
946
|
+
#
|
|
947
|
+
# source://temple//lib/temple/map.rb#32
|
|
948
|
+
def to_hash; end
|
|
949
|
+
|
|
950
|
+
# @api public
|
|
951
|
+
#
|
|
952
|
+
# source://temple//lib/temple/map.rb#28
|
|
953
|
+
def values; end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# Exception raised if invalid temple expression is found
|
|
957
|
+
#
|
|
958
|
+
# @api public
|
|
959
|
+
#
|
|
960
|
+
# source://temple//lib/temple/exceptions.rb#5
|
|
961
|
+
class Temple::InvalidExpression < ::RuntimeError; end
|
|
962
|
+
|
|
963
|
+
# source://temple//lib/temple.rb#18
|
|
964
|
+
module Temple::Mixins; end
|
|
965
|
+
|
|
966
|
+
# @api public
|
|
967
|
+
#
|
|
968
|
+
# source://temple//lib/temple/mixins/options.rb#4
|
|
969
|
+
module Temple::Mixins::ClassOptions
|
|
970
|
+
# @api public
|
|
971
|
+
#
|
|
972
|
+
# source://temple//lib/temple/mixins/options.rb#10
|
|
973
|
+
def default_options; end
|
|
974
|
+
|
|
975
|
+
# @api public
|
|
976
|
+
#
|
|
977
|
+
# source://temple//lib/temple/mixins/options.rb#35
|
|
978
|
+
def define_deprecated_options(*opts); end
|
|
979
|
+
|
|
980
|
+
# @api public
|
|
981
|
+
#
|
|
982
|
+
# source://temple//lib/temple/mixins/options.rb#26
|
|
983
|
+
def define_options(*opts); end
|
|
984
|
+
|
|
985
|
+
# @api public
|
|
986
|
+
#
|
|
987
|
+
# source://temple//lib/temple/mixins/options.rb#44
|
|
988
|
+
def disable_option_validator!; end
|
|
989
|
+
|
|
990
|
+
# @api public
|
|
991
|
+
#
|
|
992
|
+
# source://temple//lib/temple/mixins/options.rb#19
|
|
993
|
+
def options; end
|
|
994
|
+
|
|
995
|
+
# @api public
|
|
996
|
+
#
|
|
997
|
+
# source://temple//lib/temple/mixins/options.rb#5
|
|
998
|
+
def set_default_options(opts); end
|
|
999
|
+
|
|
1000
|
+
# @api public
|
|
1001
|
+
#
|
|
1002
|
+
# source://temple//lib/temple/mixins/options.rb#15
|
|
1003
|
+
def set_options(opts); end
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
# @api private
|
|
1007
|
+
#
|
|
1008
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#43
|
|
1009
|
+
module Temple::Mixins::CompiledDispatcher
|
|
1010
|
+
# @api private
|
|
1011
|
+
#
|
|
1012
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#44
|
|
1013
|
+
def call(exp); end
|
|
1014
|
+
|
|
1015
|
+
# @api private
|
|
1016
|
+
#
|
|
1017
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#48
|
|
1018
|
+
def compile(exp); end
|
|
1019
|
+
|
|
1020
|
+
private
|
|
1021
|
+
|
|
1022
|
+
# @api private
|
|
1023
|
+
#
|
|
1024
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#72
|
|
1025
|
+
def dispatched_methods; end
|
|
1026
|
+
|
|
1027
|
+
# @api private
|
|
1028
|
+
#
|
|
1029
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#54
|
|
1030
|
+
def dispatcher(exp); end
|
|
1031
|
+
|
|
1032
|
+
# @api private
|
|
1033
|
+
#
|
|
1034
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#58
|
|
1035
|
+
def replace_dispatcher(exp); end
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
# @api private
|
|
1039
|
+
#
|
|
1040
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#78
|
|
1041
|
+
class Temple::Mixins::CompiledDispatcher::DispatchNode < ::Hash
|
|
1042
|
+
# @api private
|
|
1043
|
+
# @return [DispatchNode] a new instance of DispatchNode
|
|
1044
|
+
#
|
|
1045
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#81
|
|
1046
|
+
def initialize; end
|
|
1047
|
+
|
|
1048
|
+
# @api private
|
|
1049
|
+
#
|
|
1050
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#86
|
|
1051
|
+
def compile(level = T.unsafe(nil), call_parent = T.unsafe(nil)); end
|
|
1052
|
+
|
|
1053
|
+
# @api private
|
|
1054
|
+
#
|
|
1055
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#79
|
|
1056
|
+
def method; end
|
|
1057
|
+
|
|
1058
|
+
# @api private
|
|
1059
|
+
#
|
|
1060
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#79
|
|
1061
|
+
def method=(_arg0); end
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
# @api private
|
|
1065
|
+
#
|
|
1066
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#24
|
|
1067
|
+
module Temple::Mixins::ControlFlowDispatcher
|
|
1068
|
+
# @api private
|
|
1069
|
+
#
|
|
1070
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#33
|
|
1071
|
+
def on_block(code, content); end
|
|
1072
|
+
|
|
1073
|
+
# @api private
|
|
1074
|
+
#
|
|
1075
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#29
|
|
1076
|
+
def on_case(arg, *cases); end
|
|
1077
|
+
|
|
1078
|
+
# @api private
|
|
1079
|
+
#
|
|
1080
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#37
|
|
1081
|
+
def on_cond(*cases); end
|
|
1082
|
+
|
|
1083
|
+
# @api private
|
|
1084
|
+
#
|
|
1085
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#25
|
|
1086
|
+
def on_if(condition, *cases); end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
1089
|
+
# @api private
|
|
1090
|
+
#
|
|
1091
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#4
|
|
1092
|
+
module Temple::Mixins::CoreDispatcher
|
|
1093
|
+
# @api private
|
|
1094
|
+
#
|
|
1095
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#11
|
|
1096
|
+
def on_capture(name, exp); end
|
|
1097
|
+
|
|
1098
|
+
# @api private
|
|
1099
|
+
#
|
|
1100
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#5
|
|
1101
|
+
def on_multi(*exps); end
|
|
1102
|
+
end
|
|
1103
|
+
|
|
1104
|
+
# Implements a compatible call-method
|
|
1105
|
+
# based on the including classe's methods.
|
|
1106
|
+
#
|
|
1107
|
+
# It uses every method starting with
|
|
1108
|
+
# "on" and uses the rest of the method
|
|
1109
|
+
# name as prefix of the expression it
|
|
1110
|
+
# will receive. So, if a dispatcher
|
|
1111
|
+
# has a method named "on_x", this method
|
|
1112
|
+
# will be called with arg0,..,argN
|
|
1113
|
+
# whenever an expression like [:x, arg0,..,argN ]
|
|
1114
|
+
# is encountered.
|
|
1115
|
+
#
|
|
1116
|
+
# This works with longer prefixes, too.
|
|
1117
|
+
# For example a method named "on_y_z"
|
|
1118
|
+
# will be called whenever an expression
|
|
1119
|
+
# like [:y, :z, .. ] is found. Furthermore,
|
|
1120
|
+
# if additionally a method named "on_y"
|
|
1121
|
+
# is present, it will be called when an
|
|
1122
|
+
# expression starts with :y but then does
|
|
1123
|
+
# not contain with :z. This way a
|
|
1124
|
+
# dispatcher can implement namespaces.
|
|
1125
|
+
#
|
|
1126
|
+
# @api public
|
|
1127
|
+
# @example
|
|
1128
|
+
# class MyAwesomeDispatch
|
|
1129
|
+
# include Temple::Mixins::Dispatcher
|
|
1130
|
+
# def on_awesome(thing) # keep awesome things
|
|
1131
|
+
# return [:awesome, thing]
|
|
1132
|
+
# end
|
|
1133
|
+
# def on_boring(thing) # make boring things awesome
|
|
1134
|
+
# return [:awesome, thing+" with bacon"]
|
|
1135
|
+
# end
|
|
1136
|
+
# def on(type,*args) # unknown stuff is boring too
|
|
1137
|
+
# return [:awesome, 'just bacon']
|
|
1138
|
+
# end
|
|
1139
|
+
# end
|
|
1140
|
+
# filter = MyAwesomeDispatch.new
|
|
1141
|
+
# # Boring things are converted:
|
|
1142
|
+
# filter.call([:boring, 'egg']) #=> [:awesome, 'egg with bacon']
|
|
1143
|
+
# # Unknown things too:
|
|
1144
|
+
# filter.call([:foo]) #=> [:awesome, 'just bacon']
|
|
1145
|
+
# # Known but not boring things won't be touched:
|
|
1146
|
+
# filter.call([:awesome, 'chuck norris']) #=>[:awesome, 'chuck norris']
|
|
1147
|
+
# @note Processing does not reach into unknown
|
|
1148
|
+
# expression types by default.
|
|
1149
|
+
#
|
|
1150
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#154
|
|
1151
|
+
module Temple::Mixins::Dispatcher
|
|
1152
|
+
include ::Temple::Mixins::CompiledDispatcher
|
|
1153
|
+
include ::Temple::Mixins::CoreDispatcher
|
|
1154
|
+
include ::Temple::Mixins::EscapeDispatcher
|
|
1155
|
+
include ::Temple::Mixins::ControlFlowDispatcher
|
|
1156
|
+
end
|
|
1157
|
+
|
|
1158
|
+
# @api private
|
|
1159
|
+
#
|
|
1160
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#4
|
|
1161
|
+
module Temple::Mixins::EngineDSL
|
|
1162
|
+
# @api private
|
|
1163
|
+
#
|
|
1164
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#34
|
|
1165
|
+
def after(name, *args, &block); end
|
|
1166
|
+
|
|
1167
|
+
# @api private
|
|
1168
|
+
#
|
|
1169
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#8
|
|
1170
|
+
def append(*args, &block); end
|
|
1171
|
+
|
|
1172
|
+
# @api private
|
|
1173
|
+
#
|
|
1174
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#26
|
|
1175
|
+
def before(name, *args, &block); end
|
|
1176
|
+
|
|
1177
|
+
# @api private
|
|
1178
|
+
#
|
|
1179
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#5
|
|
1180
|
+
def chain_modified!; end
|
|
1181
|
+
|
|
1182
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#54
|
|
1183
|
+
def filter(name, *options); end
|
|
1184
|
+
|
|
1185
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#54
|
|
1186
|
+
def generator(name, *options); end
|
|
1187
|
+
|
|
1188
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#54
|
|
1189
|
+
def html(name, *options); end
|
|
1190
|
+
|
|
1191
|
+
# @api private
|
|
1192
|
+
#
|
|
1193
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#13
|
|
1194
|
+
def prepend(*args, &block); end
|
|
1195
|
+
|
|
1196
|
+
# @api private
|
|
1197
|
+
#
|
|
1198
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#18
|
|
1199
|
+
def remove(name); end
|
|
1200
|
+
|
|
1201
|
+
# @api private
|
|
1202
|
+
#
|
|
1203
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#42
|
|
1204
|
+
def replace(name, *args, &block); end
|
|
1205
|
+
|
|
1206
|
+
# @api private
|
|
1207
|
+
#
|
|
1208
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#8
|
|
1209
|
+
def use(*args, &block); end
|
|
1210
|
+
|
|
1211
|
+
private
|
|
1212
|
+
|
|
1213
|
+
# @api private
|
|
1214
|
+
#
|
|
1215
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#74
|
|
1216
|
+
def chain_class_constructor(filter, local_options); end
|
|
1217
|
+
|
|
1218
|
+
# @api private
|
|
1219
|
+
#
|
|
1220
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#107
|
|
1221
|
+
def chain_element(args, block); end
|
|
1222
|
+
|
|
1223
|
+
# @api private
|
|
1224
|
+
#
|
|
1225
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#61
|
|
1226
|
+
def chain_name(name); end
|
|
1227
|
+
|
|
1228
|
+
# @api private
|
|
1229
|
+
# @raise [ArgumentError]
|
|
1230
|
+
#
|
|
1231
|
+
# source://temple//lib/temple/mixins/engine_dsl.rb#84
|
|
1232
|
+
def chain_proc_constructor(name, filter); end
|
|
1233
|
+
end
|
|
1234
|
+
|
|
1235
|
+
# @api private
|
|
1236
|
+
#
|
|
1237
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#17
|
|
1238
|
+
module Temple::Mixins::EscapeDispatcher
|
|
1239
|
+
# @api private
|
|
1240
|
+
#
|
|
1241
|
+
# source://temple//lib/temple/mixins/dispatcher.rb#18
|
|
1242
|
+
def on_escape(flag, exp); end
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# @api private
|
|
1246
|
+
#
|
|
1247
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#4
|
|
1248
|
+
module Temple::Mixins::GrammarDSL
|
|
1249
|
+
# @api private
|
|
1250
|
+
# @return [Boolean]
|
|
1251
|
+
#
|
|
1252
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#122
|
|
1253
|
+
def ===(exp); end
|
|
1254
|
+
|
|
1255
|
+
# @api private
|
|
1256
|
+
# @return [Boolean]
|
|
1257
|
+
#
|
|
1258
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#122
|
|
1259
|
+
def =~(exp); end
|
|
1260
|
+
|
|
1261
|
+
# @api private
|
|
1262
|
+
#
|
|
1263
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#136
|
|
1264
|
+
def Rule(rule); end
|
|
1265
|
+
|
|
1266
|
+
# @api private
|
|
1267
|
+
#
|
|
1268
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#132
|
|
1269
|
+
def Value(value); end
|
|
1270
|
+
|
|
1271
|
+
# @api private
|
|
1272
|
+
#
|
|
1273
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#166
|
|
1274
|
+
def const_missing(name); end
|
|
1275
|
+
|
|
1276
|
+
# @api private
|
|
1277
|
+
#
|
|
1278
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#115
|
|
1279
|
+
def extended(mod); end
|
|
1280
|
+
|
|
1281
|
+
# @api private
|
|
1282
|
+
# @return [Boolean]
|
|
1283
|
+
#
|
|
1284
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#122
|
|
1285
|
+
def match?(exp); end
|
|
1286
|
+
|
|
1287
|
+
# @api private
|
|
1288
|
+
#
|
|
1289
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#128
|
|
1290
|
+
def validate!(exp); end
|
|
1291
|
+
end
|
|
1292
|
+
|
|
1293
|
+
# @api private
|
|
1294
|
+
#
|
|
1295
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#84
|
|
1296
|
+
class Temple::Mixins::GrammarDSL::Element < ::Temple::Mixins::GrammarDSL::Or
|
|
1297
|
+
# @api private
|
|
1298
|
+
# @return [Element] a new instance of Element
|
|
1299
|
+
#
|
|
1300
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#85
|
|
1301
|
+
def initialize(grammar, rule); end
|
|
1302
|
+
|
|
1303
|
+
# @api private
|
|
1304
|
+
#
|
|
1305
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#96
|
|
1306
|
+
def after_copy(source); end
|
|
1307
|
+
|
|
1308
|
+
# @api private
|
|
1309
|
+
#
|
|
1310
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#90
|
|
1311
|
+
def match(exp, unmatched); end
|
|
1312
|
+
end
|
|
1313
|
+
|
|
1314
|
+
# @api private
|
|
1315
|
+
#
|
|
1316
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#27
|
|
1317
|
+
class Temple::Mixins::GrammarDSL::Or < ::Temple::Mixins::GrammarDSL::Rule
|
|
1318
|
+
# @api private
|
|
1319
|
+
# @return [Or] a new instance of Or
|
|
1320
|
+
#
|
|
1321
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#28
|
|
1322
|
+
def initialize(grammar, *children); end
|
|
1323
|
+
|
|
1324
|
+
# @api private
|
|
1325
|
+
#
|
|
1326
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#33
|
|
1327
|
+
def <<(rule); end
|
|
1328
|
+
|
|
1329
|
+
# @api private
|
|
1330
|
+
#
|
|
1331
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#45
|
|
1332
|
+
def after_copy(source); end
|
|
1333
|
+
|
|
1334
|
+
# @api private
|
|
1335
|
+
#
|
|
1336
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#40
|
|
1337
|
+
def match(exp, unmatched); end
|
|
1338
|
+
|
|
1339
|
+
# @api private
|
|
1340
|
+
#
|
|
1341
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#33
|
|
1342
|
+
def |(rule); end
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
# @api private
|
|
1346
|
+
#
|
|
1347
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#50
|
|
1348
|
+
class Temple::Mixins::GrammarDSL::Root < ::Temple::Mixins::GrammarDSL::Or
|
|
1349
|
+
# @api private
|
|
1350
|
+
# @return [Root] a new instance of Root
|
|
1351
|
+
#
|
|
1352
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#51
|
|
1353
|
+
def initialize(grammar, name); end
|
|
1354
|
+
|
|
1355
|
+
# @api private
|
|
1356
|
+
#
|
|
1357
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#78
|
|
1358
|
+
def after_copy(source); end
|
|
1359
|
+
|
|
1360
|
+
# @api private
|
|
1361
|
+
#
|
|
1362
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#74
|
|
1363
|
+
def copy_to(grammar); end
|
|
1364
|
+
|
|
1365
|
+
# @api private
|
|
1366
|
+
#
|
|
1367
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#56
|
|
1368
|
+
def match(exp, unmatched); end
|
|
1369
|
+
|
|
1370
|
+
# @api private
|
|
1371
|
+
#
|
|
1372
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#62
|
|
1373
|
+
def validate!(exp); end
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
# @api private
|
|
1377
|
+
#
|
|
1378
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#5
|
|
1379
|
+
class Temple::Mixins::GrammarDSL::Rule
|
|
1380
|
+
# @api private
|
|
1381
|
+
# @return [Rule] a new instance of Rule
|
|
1382
|
+
#
|
|
1383
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#6
|
|
1384
|
+
def initialize(grammar); end
|
|
1385
|
+
|
|
1386
|
+
# @api private
|
|
1387
|
+
# @return [Boolean]
|
|
1388
|
+
#
|
|
1389
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#10
|
|
1390
|
+
def ===(exp); end
|
|
1391
|
+
|
|
1392
|
+
# @api private
|
|
1393
|
+
# @return [Boolean]
|
|
1394
|
+
#
|
|
1395
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#10
|
|
1396
|
+
def =~(exp); end
|
|
1397
|
+
|
|
1398
|
+
# @api private
|
|
1399
|
+
#
|
|
1400
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#20
|
|
1401
|
+
def copy_to(grammar); end
|
|
1402
|
+
|
|
1403
|
+
# @api private
|
|
1404
|
+
# @return [Boolean]
|
|
1405
|
+
#
|
|
1406
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#10
|
|
1407
|
+
def match?(exp); end
|
|
1408
|
+
|
|
1409
|
+
# @api private
|
|
1410
|
+
#
|
|
1411
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#16
|
|
1412
|
+
def |(rule); end
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1415
|
+
# @api private
|
|
1416
|
+
#
|
|
1417
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#104
|
|
1418
|
+
class Temple::Mixins::GrammarDSL::Value < ::Temple::Mixins::GrammarDSL::Rule
|
|
1419
|
+
# @api private
|
|
1420
|
+
# @return [Value] a new instance of Value
|
|
1421
|
+
#
|
|
1422
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#105
|
|
1423
|
+
def initialize(grammar, value); end
|
|
1424
|
+
|
|
1425
|
+
# @api private
|
|
1426
|
+
#
|
|
1427
|
+
# source://temple//lib/temple/mixins/grammar_dsl.rb#110
|
|
1428
|
+
def match(exp, unmatched); end
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
# @api public
|
|
1432
|
+
#
|
|
1433
|
+
# source://temple//lib/temple/mixins/options.rb#70
|
|
1434
|
+
module Temple::Mixins::Options
|
|
1435
|
+
mixes_in_class_methods ::Temple::Mixins::ClassOptions
|
|
1436
|
+
mixes_in_class_methods ::Temple::Mixins::ThreadOptions
|
|
1437
|
+
|
|
1438
|
+
# @api public
|
|
1439
|
+
#
|
|
1440
|
+
# source://temple//lib/temple/mixins/options.rb#80
|
|
1441
|
+
def initialize(opts = T.unsafe(nil)); end
|
|
1442
|
+
|
|
1443
|
+
# @api public
|
|
1444
|
+
#
|
|
1445
|
+
# source://temple//lib/temple/mixins/options.rb#78
|
|
1446
|
+
def options; end
|
|
1447
|
+
|
|
1448
|
+
class << self
|
|
1449
|
+
# @api public
|
|
1450
|
+
# @private
|
|
1451
|
+
#
|
|
1452
|
+
# source://temple//lib/temple/mixins/options.rb#71
|
|
1453
|
+
def included(base); end
|
|
1454
|
+
end
|
|
1455
|
+
end
|
|
1456
|
+
|
|
1457
|
+
# @api private
|
|
1458
|
+
#
|
|
1459
|
+
# source://temple//lib/temple/mixins/template.rb#4
|
|
1460
|
+
module Temple::Mixins::Template
|
|
1461
|
+
include ::Temple::Mixins::ClassOptions
|
|
1462
|
+
|
|
1463
|
+
# @api private
|
|
1464
|
+
#
|
|
1465
|
+
# source://temple//lib/temple/mixins/template.rb#7
|
|
1466
|
+
def compile(code, options); end
|
|
1467
|
+
|
|
1468
|
+
# @api private
|
|
1469
|
+
#
|
|
1470
|
+
# source://temple//lib/temple/mixins/template.rb#17
|
|
1471
|
+
def create(engine, options); end
|
|
1472
|
+
|
|
1473
|
+
# @api private
|
|
1474
|
+
# @raise [NotImplementedError]
|
|
1475
|
+
#
|
|
1476
|
+
# source://temple//lib/temple/mixins/template.rb#13
|
|
1477
|
+
def register_as(*names); end
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
# source://temple//lib/temple/mixins/options.rb#49
|
|
1481
|
+
module Temple::Mixins::ThreadOptions
|
|
1482
|
+
# source://temple//lib/temple/mixins/options.rb#58
|
|
1483
|
+
def thread_options; end
|
|
1484
|
+
|
|
1485
|
+
# source://temple//lib/temple/mixins/options.rb#50
|
|
1486
|
+
def with_options(options); end
|
|
1487
|
+
|
|
1488
|
+
protected
|
|
1489
|
+
|
|
1490
|
+
# source://temple//lib/temple/mixins/options.rb#64
|
|
1491
|
+
def thread_options_key; end
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
# Mutable map class which supports map merging
|
|
1495
|
+
#
|
|
1496
|
+
# @api public
|
|
1497
|
+
#
|
|
1498
|
+
# source://temple//lib/temple/map.rb#41
|
|
1499
|
+
class Temple::MutableMap < ::Temple::ImmutableMap
|
|
1500
|
+
# @api public
|
|
1501
|
+
# @return [MutableMap] a new instance of MutableMap
|
|
1502
|
+
#
|
|
1503
|
+
# source://temple//lib/temple/map.rb#42
|
|
1504
|
+
def initialize(*map); end
|
|
1505
|
+
|
|
1506
|
+
# @api public
|
|
1507
|
+
#
|
|
1508
|
+
# source://temple//lib/temple/map.rb#46
|
|
1509
|
+
def []=(key, value); end
|
|
1510
|
+
|
|
1511
|
+
# @api public
|
|
1512
|
+
#
|
|
1513
|
+
# source://temple//lib/temple/map.rb#50
|
|
1514
|
+
def update(map); end
|
|
1515
|
+
end
|
|
1516
|
+
|
|
1517
|
+
# source://temple//lib/temple/map.rb#55
|
|
1518
|
+
class Temple::OptionMap < ::Temple::MutableMap
|
|
1519
|
+
# @return [OptionMap] a new instance of OptionMap
|
|
1520
|
+
#
|
|
1521
|
+
# source://temple//lib/temple/map.rb#56
|
|
1522
|
+
def initialize(*map, &block); end
|
|
1523
|
+
|
|
1524
|
+
# source://temple//lib/temple/map.rb#63
|
|
1525
|
+
def []=(key, value); end
|
|
1526
|
+
|
|
1527
|
+
# source://temple//lib/temple/map.rb#82
|
|
1528
|
+
def add_deprecated_keys(*keys); end
|
|
1529
|
+
|
|
1530
|
+
# source://temple//lib/temple/map.rb#78
|
|
1531
|
+
def add_valid_keys(*keys); end
|
|
1532
|
+
|
|
1533
|
+
# @return [Boolean]
|
|
1534
|
+
#
|
|
1535
|
+
# source://temple//lib/temple/map.rb#95
|
|
1536
|
+
def deprecated_key?(key); end
|
|
1537
|
+
|
|
1538
|
+
# source://temple//lib/temple/map.rb#68
|
|
1539
|
+
def update(map); end
|
|
1540
|
+
|
|
1541
|
+
# @return [Boolean]
|
|
1542
|
+
#
|
|
1543
|
+
# source://temple//lib/temple/map.rb#100
|
|
1544
|
+
def valid_key?(key); end
|
|
1545
|
+
|
|
1546
|
+
# source://temple//lib/temple/map.rb#73
|
|
1547
|
+
def valid_keys; end
|
|
1548
|
+
|
|
1549
|
+
# source://temple//lib/temple/map.rb#90
|
|
1550
|
+
def validate_key!(key); end
|
|
1551
|
+
|
|
1552
|
+
# source://temple//lib/temple/map.rb#86
|
|
1553
|
+
def validate_map!(map); end
|
|
1554
|
+
end
|
|
1555
|
+
|
|
1556
|
+
# Temple base parser
|
|
1557
|
+
#
|
|
1558
|
+
# @api public
|
|
1559
|
+
#
|
|
1560
|
+
# source://temple//lib/temple/parser.rb#4
|
|
1561
|
+
class Temple::Parser
|
|
1562
|
+
include ::Temple::Utils
|
|
1563
|
+
include ::Temple::Mixins::Options
|
|
1564
|
+
extend ::Temple::Mixins::ClassOptions
|
|
1565
|
+
extend ::Temple::Mixins::ThreadOptions
|
|
1566
|
+
end
|
|
1567
|
+
|
|
1568
|
+
# source://temple//lib/temple/static_analyzer.rb#7
|
|
1569
|
+
module Temple::StaticAnalyzer
|
|
1570
|
+
class << self
|
|
1571
|
+
# @return [Boolean]
|
|
1572
|
+
#
|
|
1573
|
+
# source://temple//lib/temple/static_analyzer.rb#32
|
|
1574
|
+
def available?; end
|
|
1575
|
+
|
|
1576
|
+
# @return [Boolean]
|
|
1577
|
+
#
|
|
1578
|
+
# source://temple//lib/temple/static_analyzer.rb#36
|
|
1579
|
+
def static?(code); end
|
|
1580
|
+
|
|
1581
|
+
# @return [Boolean]
|
|
1582
|
+
#
|
|
1583
|
+
# source://temple//lib/temple/static_analyzer.rb#57
|
|
1584
|
+
def syntax_error?(code); end
|
|
1585
|
+
end
|
|
1586
|
+
end
|
|
1587
|
+
|
|
1588
|
+
# source://temple//lib/temple/static_analyzer.rb#19
|
|
1589
|
+
Temple::StaticAnalyzer::DYNAMIC_TOKENS = T.let(T.unsafe(nil), Array)
|
|
1590
|
+
|
|
1591
|
+
# source://temple//lib/temple/static_analyzer.rb#23
|
|
1592
|
+
Temple::StaticAnalyzer::STATIC_KEYWORDS = T.let(T.unsafe(nil), Array)
|
|
1593
|
+
|
|
1594
|
+
# source://temple//lib/temple/static_analyzer.rb#27
|
|
1595
|
+
Temple::StaticAnalyzer::STATIC_OPERATORS = T.let(T.unsafe(nil), Array)
|
|
1596
|
+
|
|
1597
|
+
# source://temple//lib/temple/static_analyzer.rb#8
|
|
1598
|
+
Temple::StaticAnalyzer::STATIC_TOKENS = T.let(T.unsafe(nil), Array)
|
|
1599
|
+
|
|
1600
|
+
# source://temple//lib/temple/static_analyzer.rb#66
|
|
1601
|
+
class Temple::StaticAnalyzer::SyntaxChecker < ::Ripper
|
|
1602
|
+
private
|
|
1603
|
+
|
|
1604
|
+
# @raise [ParseError]
|
|
1605
|
+
#
|
|
1606
|
+
# source://temple//lib/temple/static_analyzer.rb#71
|
|
1607
|
+
def on_parse_error(*_arg0); end
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
# source://temple//lib/temple/static_analyzer.rb#67
|
|
1611
|
+
class Temple::StaticAnalyzer::SyntaxChecker::ParseError < ::StandardError; end
|
|
1612
|
+
|
|
1613
|
+
# @api public
|
|
1614
|
+
#
|
|
1615
|
+
# source://temple//lib/temple/templates.rb#3
|
|
1616
|
+
module Temple::Templates
|
|
1617
|
+
class << self
|
|
1618
|
+
# @api public
|
|
1619
|
+
#
|
|
1620
|
+
# source://temple//lib/temple/templates.rb#7
|
|
1621
|
+
def method_missing(name, engine, options = T.unsafe(nil)); end
|
|
1622
|
+
end
|
|
1623
|
+
end
|
|
1624
|
+
|
|
1625
|
+
# source://temple//lib/temple/templates/rails.rb#3
|
|
1626
|
+
class Temple::Templates::Rails
|
|
1627
|
+
extend ::Temple::Mixins::ClassOptions
|
|
1628
|
+
extend ::Temple::Mixins::Template
|
|
1629
|
+
|
|
1630
|
+
# source://temple//lib/temple/templates/rails.rb#6
|
|
1631
|
+
def call(template, source = T.unsafe(nil)); end
|
|
1632
|
+
|
|
1633
|
+
# @return [Boolean]
|
|
1634
|
+
#
|
|
1635
|
+
# source://temple//lib/temple/templates/rails.rb#15
|
|
1636
|
+
def supports_streaming?; end
|
|
1637
|
+
|
|
1638
|
+
class << self
|
|
1639
|
+
# source://temple//lib/temple/templates/rails.rb#19
|
|
1640
|
+
def register_as(*names); end
|
|
1641
|
+
end
|
|
1642
|
+
end
|
|
1643
|
+
|
|
1644
|
+
# source://temple//lib/temple/templates/tilt.rb#5
|
|
1645
|
+
class Temple::Templates::Tilt < ::Tilt::Template
|
|
1646
|
+
extend ::Temple::Mixins::ClassOptions
|
|
1647
|
+
extend ::Temple::Mixins::Template
|
|
1648
|
+
|
|
1649
|
+
# A string containing the (Ruby) source code for the template.
|
|
1650
|
+
#
|
|
1651
|
+
# @param locals [Hash] Local variables
|
|
1652
|
+
# @return [String] Compiled template ruby code
|
|
1653
|
+
#
|
|
1654
|
+
# source://temple//lib/temple/templates/tilt.rb#29
|
|
1655
|
+
def precompiled_template(locals = T.unsafe(nil)); end
|
|
1656
|
+
|
|
1657
|
+
# Prepare Temple template
|
|
1658
|
+
#
|
|
1659
|
+
# Called immediately after template data is loaded.
|
|
1660
|
+
#
|
|
1661
|
+
# @return [void]
|
|
1662
|
+
#
|
|
1663
|
+
# source://temple//lib/temple/templates/tilt.rb#15
|
|
1664
|
+
def prepare; end
|
|
1665
|
+
|
|
1666
|
+
class << self
|
|
1667
|
+
# source://temple//lib/temple/templates/tilt.rb#33
|
|
1668
|
+
def register_as(*names); end
|
|
1669
|
+
end
|
|
1670
|
+
end
|
|
1671
|
+
|
|
1672
|
+
# @api public
|
|
1673
|
+
#
|
|
1674
|
+
# source://temple//lib/temple/utils.rb#8
|
|
1675
|
+
module Temple::Utils
|
|
1676
|
+
extend ::Temple::Utils
|
|
1677
|
+
|
|
1678
|
+
# Check if expression is empty
|
|
1679
|
+
#
|
|
1680
|
+
# @api public
|
|
1681
|
+
# @param exp [Array] Temple expression
|
|
1682
|
+
# @return [Boolean] true if expression is empty
|
|
1683
|
+
#
|
|
1684
|
+
# source://temple//lib/temple/utils.rb#65
|
|
1685
|
+
def empty_exp?(exp); end
|
|
1686
|
+
|
|
1687
|
+
# Returns an escaped copy of `html`.
|
|
1688
|
+
#
|
|
1689
|
+
# @api public
|
|
1690
|
+
# @param html [String] The string to escape
|
|
1691
|
+
# @return [String] The escaped string
|
|
1692
|
+
#
|
|
1693
|
+
# source://temple//lib/temple/utils.rb#26
|
|
1694
|
+
def escape_html(html); end
|
|
1695
|
+
|
|
1696
|
+
# Returns an escaped copy of `html`.
|
|
1697
|
+
# Strings which are declared as html_safe are not escaped.
|
|
1698
|
+
#
|
|
1699
|
+
# @api public
|
|
1700
|
+
# @param html [String] The string to escape
|
|
1701
|
+
# @return [String] The escaped string
|
|
1702
|
+
#
|
|
1703
|
+
# source://temple//lib/temple/utils.rb#16
|
|
1704
|
+
def escape_html_safe(html); end
|
|
1705
|
+
|
|
1706
|
+
# @api public
|
|
1707
|
+
#
|
|
1708
|
+
# source://temple//lib/temple/utils.rb#76
|
|
1709
|
+
def indent_dynamic(text, indent_next, indent, pre_tags = T.unsafe(nil)); end
|
|
1710
|
+
|
|
1711
|
+
# Generate unique variable name
|
|
1712
|
+
#
|
|
1713
|
+
# @api public
|
|
1714
|
+
# @param prefix [String] Variable name prefix
|
|
1715
|
+
# @return [String] Variable name
|
|
1716
|
+
#
|
|
1717
|
+
# source://temple//lib/temple/utils.rb#55
|
|
1718
|
+
def unique_name(prefix = T.unsafe(nil)); end
|
|
1719
|
+
end
|
|
1720
|
+
|
|
1721
|
+
# source://temple//lib/temple/version.rb#2
|
|
1722
|
+
Temple::VERSION = T.let(T.unsafe(nil), String)
|