guard-mthaml 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +34 -0
- data/lib/guard/mthaml.rb +140 -0
- data/lib/guard/mthaml/compiler/MtHaml.php +255 -0
- data/lib/guard/mthaml/templates/Guardfile +12 -0
- data/lib/guard/mthaml/version.rb +5 -0
- data/vendor/autoload.php +7 -0
- data/vendor/coffeescript/coffeescript/LICENSE +22 -0
- data/vendor/coffeescript/coffeescript/README.md +96 -0
- data/vendor/coffeescript/coffeescript/composer.json +23 -0
- data/vendor/coffeescript/coffeescript/grammar.y +309 -0
- data/vendor/coffeescript/coffeescript/make.php +115 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Compiler.php +76 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Error.php +15 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Helpers.php +116 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Init.php +96 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Lexer.php +1356 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Nodes.php +105 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Parser.php +3326 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Rewriter.php +552 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Scope.php +196 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/SyntaxError.php +9 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/Value.php +20 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Access.php +31 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Arr.php +69 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Assign.php +353 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Base.php +288 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Block.php +294 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Call.php +283 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Class.php +282 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Closure.php +49 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Code.php +203 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php +39 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Existence.php +42 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Extends.php +26 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/For.php +250 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/If.php +161 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/In.php +99 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Index.php +27 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Literal.php +96 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Obj.php +126 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Op.php +292 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Param.php +119 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Parens.php +45 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Range.php +225 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Return.php +56 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Slice.php +47 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Splat.php +100 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Switch.php +121 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Throw.php +37 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Try.php +79 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Value.php +210 -0
- data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/While.php +112 -0
- data/vendor/coffeescript/coffeescript/tests/cases/arrays.coffee +77 -0
- data/vendor/coffeescript/coffeescript/tests/cases/assignment.coffee +352 -0
- data/vendor/coffeescript/coffeescript/tests/cases/booleans.coffee +21 -0
- data/vendor/coffeescript/coffeescript/tests/cases/classes.coffee +681 -0
- data/vendor/coffeescript/coffeescript/tests/cases/comments.coffee +207 -0
- data/vendor/coffeescript/coffeescript/tests/cases/compilation.coffee +72 -0
- data/vendor/coffeescript/coffeescript/tests/cases/comprehensions.coffee +501 -0
- data/vendor/coffeescript/coffeescript/tests/cases/control_flow.coffee +430 -0
- data/vendor/coffeescript/coffeescript/tests/cases/eval.coffee +29 -0
- data/vendor/coffeescript/coffeescript/tests/cases/exception_handling.coffee +102 -0
- data/vendor/coffeescript/coffeescript/tests/cases/formatting.coffee +146 -0
- data/vendor/coffeescript/coffeescript/tests/cases/function_invocation.coffee +552 -0
- data/vendor/coffeescript/coffeescript/tests/cases/functions.coffee +188 -0
- data/vendor/coffeescript/coffeescript/tests/cases/helpers.coffee +96 -0
- data/vendor/coffeescript/coffeescript/tests/cases/importing.coffee +18 -0
- data/vendor/coffeescript/coffeescript/tests/cases/interpolation.coffee +138 -0
- data/vendor/coffeescript/coffeescript/tests/cases/javascript_literals.coffee +10 -0
- data/vendor/coffeescript/coffeescript/tests/cases/numbers.coffee +76 -0
- data/vendor/coffeescript/coffeescript/tests/cases/objects.coffee +271 -0
- data/vendor/coffeescript/coffeescript/tests/cases/operators.coffee +277 -0
- data/vendor/coffeescript/coffeescript/tests/cases/option_parser.coffee +43 -0
- data/vendor/coffeescript/coffeescript/tests/cases/ranges.coffee +88 -0
- data/vendor/coffeescript/coffeescript/tests/cases/regexps.coffee +63 -0
- data/vendor/coffeescript/coffeescript/tests/cases/scope.coffee +43 -0
- data/vendor/coffeescript/coffeescript/tests/cases/slicing_and_splicing.coffee +143 -0
- data/vendor/coffeescript/coffeescript/tests/cases/soaks.coffee +134 -0
- data/vendor/coffeescript/coffeescript/tests/cases/strict.coffee +155 -0
- data/vendor/coffeescript/coffeescript/tests/cases/strings.coffee +107 -0
- data/vendor/coffeescript/coffeescript/tests/css/style.css +43 -0
- data/vendor/coffeescript/coffeescript/tests/index.php +119 -0
- data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.1.1.js +8 -0
- data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.2.0.js +8 -0
- data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.3.0.js +8 -0
- data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.3.1.js +8 -0
- data/vendor/coffeescript/coffeescript/tests/js/lib/diff.js +276 -0
- data/vendor/coffeescript/coffeescript/tests/js/main.js +123 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/LICENSE.txt +10 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/Lempar.php +948 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Action.php +257 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/ActionTable.php +299 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Config.php +574 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Data.php +1857 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Parser.php +851 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/PropagationLink.php +126 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Rule.php +144 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/State.php +283 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Symbol.php +288 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/cli.php +5 -0
- data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/ParserGenerator.php +811 -0
- data/vendor/composer/ClassLoader.php +383 -0
- data/vendor/composer/autoload_classmap.php +9 -0
- data/vendor/composer/autoload_namespaces.php +12 -0
- data/vendor/composer/autoload_psr4.php +10 -0
- data/vendor/composer/autoload_real.php +50 -0
- data/vendor/composer/installed.json +166 -0
- data/vendor/michelf/php-markdown/License.md +36 -0
- data/vendor/michelf/php-markdown/Michelf/Markdown.inc.php +10 -0
- data/vendor/michelf/php-markdown/Michelf/Markdown.php +3117 -0
- data/vendor/michelf/php-markdown/Michelf/MarkdownExtra.inc.php +11 -0
- data/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php +38 -0
- data/vendor/michelf/php-markdown/Michelf/MarkdownInterface.inc.php +9 -0
- data/vendor/michelf/php-markdown/Michelf/MarkdownInterface.php +37 -0
- data/vendor/michelf/php-markdown/Readme.md +305 -0
- data/vendor/michelf/php-markdown/Readme.php +31 -0
- data/vendor/michelf/php-markdown/composer.json +31 -0
- data/vendor/mthaml/mthaml/CHANGELOG +48 -0
- data/vendor/mthaml/mthaml/LICENSE +44 -0
- data/vendor/mthaml/mthaml/README.markdown +262 -0
- data/vendor/mthaml/mthaml/composer.json +45 -0
- data/vendor/mthaml/mthaml/docs/Makefile +153 -0
- data/vendor/mthaml/mthaml/docs/_static/mthaml.css +30 -0
- data/vendor/mthaml/mthaml/docs/_theme/mthaml/theme.conf +4 -0
- data/vendor/mthaml/mthaml/docs/conf.py +242 -0
- data/vendor/mthaml/mthaml/docs/index.rst +18 -0
- data/vendor/mthaml/mthaml/docs/twig-syntax.rst +274 -0
- data/vendor/mthaml/mthaml/examples/README.md +5 -0
- data/vendor/mthaml/mthaml/examples/autoload.php +8 -0
- data/vendor/mthaml/mthaml/examples/example-php.haml +5 -0
- data/vendor/mthaml/mthaml/examples/example-php.php +37 -0
- data/vendor/mthaml/mthaml/examples/example-twig-noext.twig +11 -0
- data/vendor/mthaml/mthaml/examples/example-twig.haml +9 -0
- data/vendor/mthaml/mthaml/examples/example-twig.php +60 -0
- data/vendor/mthaml/mthaml/examples/example.twig.haml +8 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Autoloader.php +22 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Environment.php +178 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Escaping.php +33 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Exception.php +9 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Exception/SyntaxErrorException.php +9 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/AbstractFilter.php +43 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Cdata.php +16 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/CoffeeScript.php +33 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Css.php +26 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Escaped.php +22 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/FilterInterface.php +15 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Javascript.php +26 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less.php +27 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less/LeafoLess.php +20 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less/OyejorgeLess.php +23 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown.php +58 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/CebeMarkdown.php +22 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Ciconia.php +21 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php +21 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Parsedown.php +21 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Php.php +37 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Plain.php +24 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Preserve.php +19 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Scss.php +37 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Twig.php +47 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/Indentation.php +96 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/IndentationException.php +9 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/IndentationInterface.php +50 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/Undefined.php +41 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Comment.php +71 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Doctype.php +96 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/EscapableAbstract.php +19 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Filter.php +51 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Insert.php +42 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/InterpolatedString.php +73 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/NestAbstract.php +117 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/NestInterface.php +10 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/NodeAbstract.php +77 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/ObjectRefClass.php +42 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/ObjectRefId.php +42 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php +35 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Run.php +71 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Statement.php +45 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Tag.php +90 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttribute.php +62 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttributeInterpolation.php +24 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttributeList.php +24 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php +37 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Autoclose.php +25 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Escaping.php +105 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/MergeAttrs.php +110 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Midblock.php +37 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/NodeVisitorAbstract.php +226 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/NodeVisitorInterface.php +97 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/PhpRenderer.php +288 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Printer.php +265 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/RendererAbstract.php +581 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/TwigRenderer.php +252 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Parser.php +862 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Parser/Buffer.php +147 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Runtime.php +218 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Runtime/AttributeInterpolation.php +16 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Runtime/AttributeList.php +16 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Support/Php/Executor.php +157 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Extension.php +47 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Lexer.php +48 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Loader.php +81 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php +23 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Target/TargetAbstract.php +87 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Target/TargetInterface.php +12 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php +23 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/TreeBuilder.php +100 -0
- data/vendor/mthaml/mthaml/lib/MtHaml/TreeBuilderException.php +9 -0
- data/vendor/mthaml/mthaml/phpunit.xml +25 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/EnvironmentTest.php +59 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/HamlSpecTest.php +83 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/IndentationTest.php +140 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/Node/DoctypeTest.php +51 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/Node/NodeTest.php +110 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitor/PhpRendererTest.php +113 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitor/TwigRendererTest.php +68 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitorsTest.php +44 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/Parser/BufferTest.php +77 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/ParserTest.php +47 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/RuntimeTest.php +356 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/Support/Php/ExecutorTest.php +83 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/Support/Twig/LoaderTest.php +65 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/TestCase.php +49 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/TestCaseTest.php +50 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/Support/Php/Executor.001.haml +1 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/attr_list_php.test +20 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/attr_list_twig.test +12 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test +16 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_twig.test +16 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug28_php.test +15 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug28_twig.test +15 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug42.test +13 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug8_twig.test +10 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/coffeescript_filter.test +31 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/comments.test +26 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/cond_cmt.test +25 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype.test +18 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_html4.test +20 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_invalid.test +12 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_invalid_xhtml.test +12 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_php.test +18 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_xhtml.test +30 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/filters.test +51 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/insert_non_echo_php.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/insert_non_echo_twig.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/interpolation_in_html_attrs_php.test +31 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/interpolation_in_html_attrs_twig.test +31 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/less_filter_leafo.test +33 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/less_filter_oyejorge.test +49 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test +35 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_ciconia.test +36 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_michelf.test +34 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_parsedown.test +31 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_optimization_filter_michelf.test +23 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test +18 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test +77 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_outer_whitespace.test +122 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test +14 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test +14 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php.test +109 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_autoescaping.test +22 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_autoescaping_once.test +25 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_blocks.test +29 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_filters.test +42 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test +32 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/strip_inline_comments_php.test +22 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/test.test +24 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/trailing_semicolon_php.test +14 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/try_catch_php.test +17 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig.test +112 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_blocks.test +29 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test +37 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_whitespace.test +32 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/whitespace.test +63 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/autoclose.test +30 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping.test +52 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping_attr_once.test +52 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping_html_false.test +52 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/mergeattrs.test +26 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/midblock.test +54 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/midblock_002.test +32 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attr_list.test +14 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test +42 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test +35 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_003.test +30 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_html_linebreak.test +17 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/blocks.test +27 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/blocks_002.test +15 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/boolean_attr.test +19 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/bug28.test +15 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/bug8.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/cond_cmt.test +23 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/doctype.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/double_equal.test +7 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/empty_line_after_multiline.test +10 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_001.test +8 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_002.test +8 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_003.test +8 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_004.test +6 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_005.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_006.test +7 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_007.test +7 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_008.test +7 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_009.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_010.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_013.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_016.test +7 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_017.test +8 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_018.test +6 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_019.test +6 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_020.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters.test +20 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_002.test +19 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_003.test +13 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_004.test +21 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_005.test +22 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_006.test +23 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/insertflags.test +17 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/interpolation.test +36 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/interpolation_in_html_attrs.test +17 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiline.test +18 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiline_code.test +59 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiple_attr_kinds.test +47 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/non_rendered_comment.test +31 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ns.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref.test +22 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref_error1.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref_error2.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/quotes_in_haml.test +10 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby19_attrs.test +11 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma.test +23 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_001.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_002.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_003.test +5 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/standard.test +114 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/tagflags.test +39 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/runtime/php_filters.test +28 -0
- data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/runtime/twig_filters.test +31 -0
- data/vendor/mthaml/mthaml/test/bootstrap.php +3 -0
- metadata +398 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
--HAML--
|
2
|
+
%html
|
3
|
+
:css
|
4
|
+
:javascript
|
5
|
+
if (foo) {
|
6
|
+
alert('hey!');
|
7
|
+
}
|
8
|
+
foo
|
9
|
+
|
10
|
+
--EXPECT--
|
11
|
+
root(
|
12
|
+
tag(html
|
13
|
+
filter(css
|
14
|
+
)
|
15
|
+
filter(javascript
|
16
|
+
interpolated(text(if (foo) {))
|
17
|
+
interpolated(text( alert('hey!');))
|
18
|
+
interpolated(text(}))
|
19
|
+
)
|
20
|
+
interpolated(text(foo))
|
21
|
+
)
|
22
|
+
)
|
23
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
--HAML--
|
2
|
+
%p This is #{quality} cake!
|
3
|
+
%p "This is the #{quality} cake!"
|
4
|
+
%p= "This is the #{quality} cake!"
|
5
|
+
%html(foo="bar #{test}" bar="baz \#{no}")
|
6
|
+
%p
|
7
|
+
Look at \\#{word} lack of backslash: \#{foo}
|
8
|
+
And yon presence thereof: \{foo}
|
9
|
+
Test \\\#{test}
|
10
|
+
:javascript
|
11
|
+
$(document).ready(function() {
|
12
|
+
alert(#{message.to_json});
|
13
|
+
});
|
14
|
+
|
15
|
+
--EXPECT--
|
16
|
+
root(
|
17
|
+
tag(p interpolated(text(This is )insert(quality)text( cake!)))
|
18
|
+
tag(p interpolated(text("This is the )insert(quality)text( cake!")))
|
19
|
+
tag(p insert("This is the #{quality} cake!"))
|
20
|
+
tag(html
|
21
|
+
attr(text(foo)interpolated(text(bar )insert(test)))
|
22
|
+
attr(text(bar)interpolated(text(baz #{no})))
|
23
|
+
)
|
24
|
+
tag(p
|
25
|
+
interpolated(text(Look at \\)insert(word)text( lack of backslash: #{foo}))
|
26
|
+
interpolated(text(And yon presence thereof: \{foo}))
|
27
|
+
interpolated(text(Test \\#{test}))
|
28
|
+
)
|
29
|
+
filter(javascript
|
30
|
+
interpolated(text($(document).ready(function() {))
|
31
|
+
interpolated(text( alert()insert(message.to_json)text();))
|
32
|
+
interpolated(text(});))
|
33
|
+
interpolated(text())
|
34
|
+
)
|
35
|
+
)
|
36
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
--HAML--
|
2
|
+
%html(foo="bar" #{test} bar="baz")
|
3
|
+
%html{:foo=>"bar", #{test}, :bar=>"baz"}
|
4
|
+
--EXPECT--
|
5
|
+
root(
|
6
|
+
tag(html
|
7
|
+
attr(text(foo)interpolated(text(bar)))
|
8
|
+
attr(insert(test))
|
9
|
+
attr(text(bar)interpolated(text(baz)))
|
10
|
+
)
|
11
|
+
tag(html
|
12
|
+
attr(text(foo)interpolated(text(bar)))
|
13
|
+
attr(insert(test))
|
14
|
+
attr(text(bar)interpolated(text(baz)))
|
15
|
+
)
|
16
|
+
)
|
17
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
--HAML--
|
2
|
+
testing multiline |
|
3
|
+
indicators. |
|
4
|
+
notice trailing spaces after | ^ |
|
5
|
+
test
|
6
|
+
%p
|
7
|
+
second |
|
8
|
+
multiline |
|
9
|
+
line |
|
10
|
+
--EXPECT--
|
11
|
+
root(
|
12
|
+
interpolated(text(testing multiline indicators. notice trailing spaces after | ^ ))
|
13
|
+
interpolated(text(test))
|
14
|
+
tag(p
|
15
|
+
interpolated(text(second multiline line ))
|
16
|
+
)
|
17
|
+
)
|
18
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
--HAML--
|
2
|
+
%p
|
3
|
+
- f({foo: bar,
|
4
|
+
bar: baz,
|
5
|
+
baz: qux})
|
6
|
+
= ok
|
7
|
+
%p
|
8
|
+
- f({foo: bar,
|
9
|
+
bar: baz,
|
10
|
+
baz: qux})
|
11
|
+
= ok
|
12
|
+
%p
|
13
|
+
- foo,
|
14
|
+
bar,
|
15
|
+
baz
|
16
|
+
= ok
|
17
|
+
%p
|
18
|
+
= f({foo: bar,
|
19
|
+
bar: baz,
|
20
|
+
baz: qux})
|
21
|
+
= ok
|
22
|
+
%p
|
23
|
+
= f({foo: bar,
|
24
|
+
bar: baz,
|
25
|
+
baz: qux})
|
26
|
+
= ok
|
27
|
+
%p
|
28
|
+
= foo,
|
29
|
+
bar,
|
30
|
+
baz
|
31
|
+
= ok
|
32
|
+
--EXPECT--
|
33
|
+
root(
|
34
|
+
tag(p
|
35
|
+
run(f({foo: bar, bar: baz, baz: qux}))
|
36
|
+
insert(ok)
|
37
|
+
)
|
38
|
+
tag(p
|
39
|
+
run(f({foo: bar, bar: baz, baz: qux}))
|
40
|
+
insert(ok)
|
41
|
+
)
|
42
|
+
tag(p
|
43
|
+
run(foo, bar, baz)
|
44
|
+
insert(ok)
|
45
|
+
)
|
46
|
+
tag(p
|
47
|
+
insert(f({foo: bar, bar: baz, baz: qux}))
|
48
|
+
insert(ok)
|
49
|
+
)
|
50
|
+
tag(p
|
51
|
+
insert(f({foo: bar, bar: baz, baz: qux}))
|
52
|
+
insert(ok)
|
53
|
+
)
|
54
|
+
tag(p
|
55
|
+
insert(foo, bar, baz)
|
56
|
+
insert(ok)
|
57
|
+
)
|
58
|
+
)
|
59
|
+
|
@@ -0,0 +1,47 @@
|
|
1
|
+
--HAML--
|
2
|
+
%p(foo="bar"){"bar"=>"baz"}[a]
|
3
|
+
%p{"bar"=>"baz"}(foo="bar")[a]
|
4
|
+
%p[a](foo="bar"){"bar"=>"baz"}
|
5
|
+
%p[a](foo="bar"){"bar"=>"baz"}[a]
|
6
|
+
%p[a](foo="bar"){"bar"=>"baz"}(foo="bar")
|
7
|
+
%p[a](foo="bar"){"bar"=>"baz"}{"bar"=>"baz"}
|
8
|
+
--EXPECT--
|
9
|
+
root(
|
10
|
+
tag(p
|
11
|
+
attr(text(foo)interpolated(text(bar)))
|
12
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
13
|
+
attr(text(class)object_ref_class(insert(a)))
|
14
|
+
attr(text(id)object_ref_id(insert(a)))
|
15
|
+
)
|
16
|
+
tag(p
|
17
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
18
|
+
attr(text(foo)interpolated(text(bar)))
|
19
|
+
attr(text(class)object_ref_class(insert(a)))
|
20
|
+
attr(text(id)object_ref_id(insert(a)))
|
21
|
+
)
|
22
|
+
tag(p
|
23
|
+
attr(text(class)object_ref_class(insert(a)))
|
24
|
+
attr(text(id)object_ref_id(insert(a)))
|
25
|
+
attr(text(foo)interpolated(text(bar)))
|
26
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
27
|
+
)
|
28
|
+
tag(p interpolated(text([a]))
|
29
|
+
attr(text(class)object_ref_class(insert(a)))
|
30
|
+
attr(text(id)object_ref_id(insert(a)))
|
31
|
+
attr(text(foo)interpolated(text(bar)))
|
32
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
33
|
+
)
|
34
|
+
tag(p interpolated(text((foo="bar")))
|
35
|
+
attr(text(class)object_ref_class(insert(a)))
|
36
|
+
attr(text(id)object_ref_id(insert(a)))
|
37
|
+
attr(text(foo)interpolated(text(bar)))
|
38
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
39
|
+
)
|
40
|
+
tag(p interpolated(text({"bar"=>"baz"}))
|
41
|
+
attr(text(class)object_ref_class(insert(a)))
|
42
|
+
attr(text(id)object_ref_id(insert(a)))
|
43
|
+
attr(text(foo)interpolated(text(bar)))
|
44
|
+
attr(interpolated(text(bar))interpolated(text(baz)))
|
45
|
+
)
|
46
|
+
)
|
47
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
--HAML--
|
2
|
+
%div
|
3
|
+
-# foo
|
4
|
+
bar
|
5
|
+
baz
|
6
|
+
%syntax(error
|
7
|
+
a
|
8
|
+
b
|
9
|
+
c
|
10
|
+
a |
|
11
|
+
b |
|
12
|
+
c |
|
13
|
+
%p
|
14
|
+
--EXPECT--
|
15
|
+
root(
|
16
|
+
tag(div
|
17
|
+
comment(text(foo)
|
18
|
+
text(bar)
|
19
|
+
text( baz)
|
20
|
+
text(%syntax(error)
|
21
|
+
text(a)
|
22
|
+
text( b)
|
23
|
+
text( c)
|
24
|
+
text(a |)
|
25
|
+
text(b |)
|
26
|
+
text(c |)
|
27
|
+
)
|
28
|
+
tag(p)
|
29
|
+
)
|
30
|
+
)
|
31
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
--HAML--
|
2
|
+
%p[foo]
|
3
|
+
%p[foo, "bar"]
|
4
|
+
%p[foo,"bar","baz"]
|
5
|
+
%p[]
|
6
|
+
--EXPECT--
|
7
|
+
root(
|
8
|
+
tag(p
|
9
|
+
attr(text(class)object_ref_class(insert(foo)))
|
10
|
+
attr(text(id)object_ref_id(insert(foo)))
|
11
|
+
)
|
12
|
+
tag(p
|
13
|
+
attr(text(class)object_ref_class(insert(foo)insert("bar")))
|
14
|
+
attr(text(id)object_ref_id(insert(foo)insert("bar")))
|
15
|
+
)
|
16
|
+
tag(p
|
17
|
+
attr(text(class)object_ref_class(insert(foo)insert("bar")))
|
18
|
+
attr(text(id)object_ref_id(insert(foo)insert("bar")))
|
19
|
+
)
|
20
|
+
tag(p)
|
21
|
+
)
|
22
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
--HAML--
|
2
|
+
%img{ "src" => "http://placehold.it/200x200",
|
3
|
+
"data" => {foo: "bar",
|
4
|
+
bar: "baz" }}
|
5
|
+
%img{ "multi,
|
6
|
+
line,
|
7
|
+
" => "attr,
|
8
|
+
"}
|
9
|
+
--EXPECT--
|
10
|
+
root(
|
11
|
+
tag(img
|
12
|
+
attr(interpolated(text(src))interpolated(text(http://placehold.it/200x200)))
|
13
|
+
attr(interpolated(text(data))insert({foo: "bar",
|
14
|
+
bar: "baz" }))
|
15
|
+
)
|
16
|
+
tag(img
|
17
|
+
attr(interpolated(text(multi,
|
18
|
+
line,
|
19
|
+
))interpolated(text(attr,
|
20
|
+
)))
|
21
|
+
)
|
22
|
+
)
|
23
|
+
|
@@ -0,0 +1,114 @@
|
|
1
|
+
--HAML--
|
2
|
+
!!!
|
3
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en-US", "lang" => "en-US"}
|
4
|
+
%head
|
5
|
+
%title This is some title
|
6
|
+
%meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}
|
7
|
+
%body
|
8
|
+
/ Hey, a comment!
|
9
|
+
.header
|
10
|
+
This is the header,
|
11
|
+
with multiple lines in it.
|
12
|
+
= 1 + 9 + 8 + 2
|
13
|
+
/
|
14
|
+
And now, a
|
15
|
+
= "multiline comment"
|
16
|
+
%p everything can be nested in comments
|
17
|
+
#body= " Hey I print something!"
|
18
|
+
- for number in range(0, 120)
|
19
|
+
= number
|
20
|
+
Wow.|
|
21
|
+
%p
|
22
|
+
= "Holy cow " ~ |
|
23
|
+
"multiline " ~ |
|
24
|
+
"tags! " ~ |
|
25
|
+
"A pipe (|) even!" |
|
26
|
+
= [1, 2, 3]|length
|
27
|
+
= "Holy cow " ~ |
|
28
|
+
"multiline " ~ |
|
29
|
+
"tags! " |
|
30
|
+
%div.silent
|
31
|
+
- set foo = "this"
|
32
|
+
- set foo = foo ~ " shouldn't"
|
33
|
+
- set foo = foo ~ " be displayed"
|
34
|
+
= foo ~ " but now it should!"
|
35
|
+
-# Woah crap a non rendered comment!
|
36
|
+
|
37
|
+
-# That was a line that shouldn't close everything.
|
38
|
+
\= Escape
|
39
|
+
%ul.really.cool
|
40
|
+
- for a in ('a'..'f')
|
41
|
+
%li= a
|
42
|
+
#combo.of_divs_with_underscore= "with this text"
|
43
|
+
.footer
|
44
|
+
%strong.shout= "footer"
|
45
|
+
--EXPECT--
|
46
|
+
root(
|
47
|
+
doctype(default)
|
48
|
+
tag(html
|
49
|
+
attr(text(xmlns)interpolated(text(http://www.w3.org/1999/xhtml)))
|
50
|
+
attr(interpolated(text(xml:lang))interpolated(text(en-US)))
|
51
|
+
attr(interpolated(text(lang))interpolated(text(en-US)))
|
52
|
+
tag(head
|
53
|
+
tag(title interpolated(text(This is some title)))
|
54
|
+
tag(meta
|
55
|
+
attr(interpolated(text(http-equiv))interpolated(text(Content-Type)))
|
56
|
+
attr(text(content)interpolated(text(text/html; charset=utf-8)))
|
57
|
+
)
|
58
|
+
)
|
59
|
+
tag(body
|
60
|
+
comment(text(Hey, a comment!))
|
61
|
+
tag(div
|
62
|
+
attr(text(class)text(header))
|
63
|
+
interpolated(text(This is the header,))
|
64
|
+
interpolated(text(with multiple lines in it.))
|
65
|
+
insert(1 + 9 + 8 + 2)
|
66
|
+
)
|
67
|
+
comment(
|
68
|
+
interpolated(text(And now, a))
|
69
|
+
insert("multiline comment")
|
70
|
+
tag(p interpolated(text(everything can be nested in comments)))
|
71
|
+
)
|
72
|
+
tag(div insert(" Hey I print something!")
|
73
|
+
attr(text(id)text(body))
|
74
|
+
)
|
75
|
+
run(for number in range(0, 120)
|
76
|
+
insert(number)
|
77
|
+
)
|
78
|
+
interpolated(text(Wow.|))
|
79
|
+
tag(p
|
80
|
+
insert("Holy cow " ~ "multiline " ~ "tags! " ~ "A pipe (|) even!" )
|
81
|
+
insert([1, 2, 3]|length)
|
82
|
+
insert("Holy cow " ~ "multiline " ~ "tags! " )
|
83
|
+
)
|
84
|
+
tag(div
|
85
|
+
attr(text(class)text(silent))
|
86
|
+
run(set foo = "this")
|
87
|
+
run(set foo = foo ~ " shouldn't")
|
88
|
+
run(set foo = foo ~ " be displayed")
|
89
|
+
insert(foo ~ " but now it should!")
|
90
|
+
comment(text(Woah crap a non rendered comment!))
|
91
|
+
)
|
92
|
+
comment(text(That was a line that shouldn't close everything.))
|
93
|
+
interpolated(text(= Escape))
|
94
|
+
tag(ul
|
95
|
+
attr(text(class)text(really))
|
96
|
+
attr(text(class)text(cool))
|
97
|
+
run(for a in ('a'..'f')
|
98
|
+
tag(li insert(a))
|
99
|
+
)
|
100
|
+
)
|
101
|
+
tag(div insert("with this text")
|
102
|
+
attr(text(id)text(combo))
|
103
|
+
attr(text(class)text(of_divs_with_underscore))
|
104
|
+
)
|
105
|
+
tag(div
|
106
|
+
attr(text(class)text(footer))
|
107
|
+
tag(strong insert("footer")
|
108
|
+
attr(text(class)text(shout))
|
109
|
+
)
|
110
|
+
)
|
111
|
+
)
|
112
|
+
)
|
113
|
+
)
|
114
|
+
|