Module: FrontMatterParser::SyntaxParser
- Defined in:
- lib/front_matter_parser/syntax_parser.rb,
lib/front_matter_parser/syntax_parser/factorizable.rb,
lib/front_matter_parser/syntax_parser/multi_line_comment.rb,
lib/front_matter_parser/syntax_parser/indentation_comment.rb,
lib/front_matter_parser/syntax_parser/single_line_comment.rb
Overview
This module includes parsers for different syntaxes. They respond to
a method #call
, which takes a string as argument and responds with
a hash interface with :front_matter
and :content
keys, or nil
if no
front matter is found.
:reek:TooManyConstants
Defined Under Namespace
Modules: Factorizable Classes: IndentationComment, MultiLineComment, SingleLineComment
Constant Summary collapse
- Coffee =
SingleLineComment['#']
- Sass =
SingleLineComment['//']
- Scss =
SingleLineComment['//']
- Html =
MultiLineComment['<!--', '-->']
- Erb =
MultiLineComment['<%#', '%>']
- Liquid =
MultiLineComment['{% comment %}', '{% endcomment %}']
- Md =
MultiLineComment['', '']
- Slim =
IndentationComment['/']
- Haml =
IndentationComment['-#']