Module: MarkdownRecord::ContentDsl
- Includes:
- Attribute, DirectoryFragment, Disable, Enable, EndAttribute, EndModel, Fragment, Model, Scope, UseLayout
- Included in:
- JsonRenderer, Rendering::Nodes::HtmlBase, Rendering::Nodes::JsonBase
- Defined in:
- lib/markdown_record/rendering/content_dsl.rb,
lib/markdown_record/rendering/content_dsl/model.rb,
lib/markdown_record/rendering/content_dsl/scope.rb,
lib/markdown_record/rendering/content_dsl/enable.rb,
lib/markdown_record/rendering/content_dsl/disable.rb,
lib/markdown_record/rendering/content_dsl/fragment.rb,
lib/markdown_record/rendering/content_dsl/attribute.rb,
lib/markdown_record/rendering/content_dsl/end_model.rb,
lib/markdown_record/rendering/content_dsl/use_layout.rb,
lib/markdown_record/rendering/content_dsl/end_attribute.rb,
lib/markdown_record/rendering/content_dsl/directory_fragment.rb
Defined Under Namespace
Modules: Attribute, DirectoryFragment, Disable, Enable, EndAttribute, EndModel, Fragment, Model, Scope, UseLayout
Constant Summary collapse
- HTML_COMMENT_REGEX =
/(<!--(?:(?:\s|.)(?!-->))*(?:.|\s)-->)/
Constants included from Enable
Enable::ENCODED_REGEX, Enable::REGEX
Constants included from Disable
Disable::ENCODED_REGEX, Disable::REGEX
Constants included from UseLayout
UseLayout::ENCODED_REGEX, UseLayout::REGEX
Constants included from Fragment
Fragment::ENCODED_REGEX, Fragment::REGEX
Constants included from DirectoryFragment
DirectoryFragment::ENCODED_REGEX, DirectoryFragment::REGEX
Constants included from EndModel
EndModel::ENCODED_REGEX, EndModel::REGEX
Constants included from EndAttribute
EndAttribute::ENCODED_REGEX, EndAttribute::REGEX
Constants included from Attribute
Attribute::ENCODED_REGEX, Attribute::REGEX
Constants included from Model
Model::ENCODED_REGEX, Model::REGEX
Constants included from Scope
Scope::ENCODED_REGEX, Scope::REGEX
Instance Method Summary collapse
Methods included from Enable
Methods included from Disable
Methods included from UseLayout
Methods included from Fragment
Methods included from DirectoryFragment
#directory_fragment_dsl, remove_dsl
Methods included from EndModel
Methods included from EndAttribute
#end_attribute_dsl, remove_dsl
Methods included from Attribute
Methods included from Model
Methods included from Scope
Instance Method Details
#remove_html_dsl_command(text) ⇒ Object
40 41 42 43 |
# File 'lib/markdown_record/rendering/content_dsl.rb', line 40 def remove_html_dsl_command(text) text = UseLayout.remove_dsl(text) text end |
#remove_json_dsl_commands(text) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/markdown_record/rendering/content_dsl.rb', line 27 def remove_json_dsl_commands(text) text = Scope.remove_dsl(text) text = Model.remove_dsl(text) text = Attribute.remove_dsl(text) text = EndAttribute.remove_dsl(text) text = EndModel.remove_dsl(text) text = DirectoryFragment.remove_dsl(text) text = Fragment.remove_dsl(text) text = Disable.remove_dsl(text) text = Enable.remove_dsl(text) text end |