Module: BetterHtml
- Defined in:
- lib/better_html.rb,
lib/better_html/config.rb,
lib/better_html/errors.rb,
lib/better_html/parser.rb,
lib/better_html/helpers.rb,
lib/better_html/railtie.rb,
lib/better_html/version.rb,
lib/better_html/ast/node.rb,
lib/better_html/tree/tag.rb,
lib/better_html/better_erb.rb,
lib/better_html/ast/iterator.rb,
lib/better_html/tree/attribute.rb,
lib/better_html/html_attributes.rb,
lib/better_html/tokenizer/token.rb,
lib/better_html/tokenizer/base_erb.rb,
lib/better_html/tokenizer/html_erb.rb,
lib/better_html/tokenizer/location.rb,
lib/better_html/tree/attributes_list.rb,
lib/better_html/test_helper/ruby_node.rb,
lib/better_html/tokenizer/html_lodash.rb,
lib/better_html/tokenizer/token_array.rb,
lib/better_html/test_helper/safety_error.rb,
lib/better_html/tokenizer/javascript_erb.rb,
lib/better_html/better_erb/runtime_checks.rb,
lib/better_html/test_helper/safe_erb/base.rb,
lib/better_html/test_helper/safe_erb_tester.rb,
lib/better_html/test_helper/safe_lodash_tester.rb,
lib/better_html/better_erb/erubi_implementation.rb,
lib/better_html/better_erb/validated_output_buffer.rb,
lib/better_html/test_helper/safe_erb/no_statements.rb,
lib/better_html/test_helper/safe_erb/tag_interpolation.rb,
lib/better_html/test_helper/safe_erb/allowed_script_type.rb,
lib/better_html/test_helper/safe_erb/script_interpolation.rb,
lib/better_html/test_helper/safe_erb/no_javascript_tag_helper.rb
Defined Under Namespace
Modules: AST, Helpers, TestHelper, Tokenizer, Tree
Classes: BetterErb, Config, DontInterpolateHere, Errors, HtmlAttributes, HtmlError, InterpolatorError, Parser, ParserError, Railtie, UnsafeHtmlError
Constant Summary
collapse
- VERSION =
"2.1.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
11
12
13
|
# File 'lib/better_html.rb', line 11
def config
@config ||= Config.new
end
|
Class Method Details
15
16
17
|
# File 'lib/better_html.rb', line 15
def configure
yield config if block_given?
end
|