Module: WebResourceBundler::BlockParser
- Defined in:
- lib/web_resource_bundler/content_management/block_parser.rb
Constant Summary collapse
- CONDITIONAL_BLOCK_PATTERN =
/<!--\s*\[\s*if[^>]*IE\s*\d*[^>]*\]\s*>(.*?)<!\s*\[\s*endif\s*\]\s*-->/xmi
- CONDITION_PATTERN =
/<!--\s*(\[[^<]*\])\s*>/xmi
- LINK_PATTERN =
/(<(link|script[^>]*?src\s*=).*?(><\/script>|>))/i
- URL_PATTERN =
/(href|src) *= *["']([^"'?]+)/i
Class Method Summary collapse
-
.parse(block) ⇒ Object
just a short method to start parsing block.
Class Method Details
.parse(block) ⇒ Object
just a short method to start parsing block
12 13 14 |
# File 'lib/web_resource_bundler/content_management/block_parser.rb', line 12 def parse(block) parse_block_with_childs(block, "") end |