brakeman 3.2.1 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +18 -0
- data/bin/brakeman +1 -1
- data/bundle/load.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/CHANGES.txt +828 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/README.txt +102 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/Makefile +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/bin/erubis +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis +3468 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/contrib/inline-require +179 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/created.rid +1 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/index.html +24 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/docstyle.css +209 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/setup.rb +1331 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-engines.rb +425 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-main.rb +752 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/test.rb +45 -0
- data/bundle/ruby/2.3.0/gems/erubis-2.7.0/test/testutil.rb +111 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/CHANGELOG.md +1363 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/FAQ.md +157 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/README.md +173 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/REFERENCE.md +1294 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/Rakefile +134 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/bin/haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/buffer.rb +345 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/compiler.rb +540 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/engine.rb +245 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/error.rb +61 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/exec.rb +329 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/filters.rb +404 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers.rb +664 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +147 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +58 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +29 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +104 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/options.rb +279 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/parser.rb +764 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/railtie.rb +22 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template.rb +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/options.rb +16 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +41 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/util.rb +377 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/lib/haml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/engine_test.rb +2013 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/action_view.erb +62 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/erb/standard.erb +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/filters_test.rb +254 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/LICENSE +14 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/README.md +106 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +38 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/haml-spec/tests.json +660 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/helper_test.rb +583 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/markaby/standard.mab +52 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/mocks/article.rb +6 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/parser_test.rb +105 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpers.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/helpful.xhtml +10 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +70 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/list.xhtml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +40 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +148 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/original_engine.xhtml +20 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/partials.xhtml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/render_layout.xhtml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/silent_script.xhtml +74 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/standard.xhtml +162 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +23 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/very_basic.xhtml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +90 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/template_test.rb +354 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +9 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +5 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout.erb +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_partial.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +47 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/breakage.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +8 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpers.haml +55 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/helpful.haml +11 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/just_stuff.haml +85 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/list.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +32 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +144 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/original_engine.haml +17 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout.haml +3 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partialize.haml +1 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/partials.haml +12 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/render_layout.haml +2 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/silent_script.haml +45 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +43 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +21 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/very_basic.haml +4 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +87 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/test_helper.rb +81 -0
- data/bundle/ruby/2.3.0/gems/haml-4.0.7/test/util_test.rb +63 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/AUTHORS +3 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/COPYING +339 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Changelog.md +415 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Gemfile +9 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/INSTALL +59 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/LICENSE +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/README.rdoc +74 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/Rakefile +30 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/TODO +6 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/ansi_colors.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +18 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/basic_usage.rb +75 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/color_scheme.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/get_character.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb +12 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/menus.rb +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/overwrite.rb +19 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/page_and_wrap.rb +322 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/password.rb +7 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/repeat_entry.rb +21 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/trapping_eof.rb +22 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/examples/using_readline.rb +17 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/highline.gemspec +37 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb +1048 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +134 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/compatibility.rb +16 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/import.rb +41 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/menu.rb +381 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/question.rb +480 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/simulate.rb +48 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/string_extensions.rb +111 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/style.rb +192 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/system_extensions.rb +254 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline/version.rb +4 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/setup.rb +1360 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/highline.css +65 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/images/logo.png +0 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/site/index.html +58 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/string_methods.rb +32 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_color_scheme.rb +96 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_highline.rb +1402 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_import.rb +52 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_menu.rb +439 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_simulator.rb +23 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_extension.rb +33 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_string_highline.rb +38 -0
- data/bundle/ruby/2.3.0/gems/highline-1.7.8/test/tc_style.rb +578 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/History.txt +371 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Manifest.txt +8 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/README.txt +87 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/Rakefile +92 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/bin/r2r_show +33 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/lib/ruby2ruby.rb +1159 -0
- data/bundle/ruby/2.3.0/gems/ruby2ruby-2.3.0/test/test_ruby2ruby.rb +709 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/History.txt +882 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Manifest.txt +29 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/README.txt +93 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/Rakefile +187 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse +96 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/bin/ruby_parse_extract_error +156 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.rb +5773 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby18_parser.y +1899 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.rb +6171 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby19_parser.y +2109 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.rb +6723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby20_parser.y +2372 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.rb +6764 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby21_parser.y +2382 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.rb +6804 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby22_parser.y +2393 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.rb +6905 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby23_parser.y +2425 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rb +1237 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex +177 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_lexer.rex.rb +317 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.rb +7 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser.yy +2506 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/lib/ruby_parser_extras.rb +1460 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_lexer.rb +2723 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser.rb +3502 -0
- data/bundle/ruby/2.3.0/gems/ruby_parser-3.8.1/test/test_ruby_parser_extras.rb +228 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/CHANGES.md +149 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Gemfile +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/LICENSE.txt +22 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/README.md +191 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/Rakefile +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bin/safe_yaml +75 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/bundle_install_all_ruby_versions.sh +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb +34 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb +181 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +35 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb +12 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb +99 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb +52 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb +94 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb +36 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb +41 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb +21 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb +13 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb +33 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb +26 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb +18 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb +17 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb +47 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/run_specs_all_ruby_versions.sh +38 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/safe_yaml.gemspec +19 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +2 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue48.txt +20 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +69 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +278 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +731 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +29 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +10 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +11 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +60 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +42 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +64 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +51 -0
- data/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CODE_OF_CONDUCT.md +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/CONTRIBUTING.md +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/MIT-LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/README.md +227 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/REVISION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/Rakefile +432 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_DATE +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/VERSION_NAME +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/sass-convert +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/bin/scss +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/extra/update_watch.rb +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/init.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/base.rb +88 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/chain.rb +34 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/filesystem.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/memory.rb +46 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/cache_stores/null.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/callbacks.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/css.rb +408 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/engine.rb +1218 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/environment.rb +215 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/error.rb +198 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_convert.rb +283 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/sass_scss.rb +440 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/features.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers.rb +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/base.rb +182 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/deprecated_path.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/importers/filesystem.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger.rb +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/base.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/logger/log_level.rb +45 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/media.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb +582 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/configuration.rb +134 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/generic.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/merb.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rack.rb +60 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/rails.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/plugin/staleness_checker.rb +199 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/railtie.rb +10 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/repl.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/root.rb +7 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script.rb +66 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_lexer.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_parser.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/css_variable_warning.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/functions.rb +2690 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/lexer.rb +464 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/parser.rb +825 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree.rb +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb +313 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/interpolation.rb +223 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/list_literal.rb +104 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/literal.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/map_literal.rb +64 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb +127 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/operation.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/selector.rb +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/string_interpolation.rb +125 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/unary_operation.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/tree/variable.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value.rb +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/arg_list.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/base.rb +241 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/bool.rb +35 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/color.rb +698 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/helpers.rb +272 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/list.rb +113 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/map.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/null.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/number.rb +561 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/script/value/string.rb +145 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss.rb +14 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/css_parser.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/parser.rb +1236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/rx.rb +140 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/scss/static_parser.rb +366 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/abstract_sequence.rb +111 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/comma_sequence.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/pseudo.rb +266 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/sequence.rb +636 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple.rb +116 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/selector/simple_sequence.rb +344 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/shared.rb +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/map.rb +211 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/position.rb +39 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/source/range.rb +41 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/stack.rb +120 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/supports.rb +225 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/at_root_node.rb +83 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/charset_node.rb +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/comment_node.rb +82 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/content_node.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/css_import_node.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/debug_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/directive_node.rb +59 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/each_node.rb +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/error_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/extend_node.rb +43 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/for_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/function_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/if_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/import_node.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/keyframe_rule_node.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/media_node.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_def_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/mixin_node.rb +52 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/node.rb +240 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/prop_node.rb +170 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/return_node.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb +44 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/rule_node.rb +146 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/supports_node.rb +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/trace_node.rb +33 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/variable_node.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb +72 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/check_nesting.rb +173 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/convert.rb +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/cssize.rb +373 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/deep_copy.rb +107 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/extend.rb +70 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb +563 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/set_options.rb +139 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/visitors/to_css.rb +409 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/warn_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/tree/while_node.rb +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util.rb +1350 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/cross_platform_random.rb +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/multibyte_string_scanner.rb +155 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/normalized_map.rb +129 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/ordered_hash.rb +192 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/subset_map.rb +109 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/util/test.rb +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/version.rb +124 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/rails/init.rb +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass-spec.yml +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/cache_test.rb +131 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/callbacks_test.rb +61 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/compiler_test.rb +236 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/conversion_test.rb +2171 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css2sass_test.rb +526 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/css_variable_test.rb +132 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/data/hsl-rgb.txt +319 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/encoding_test.rb +219 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/engine_test.rb +3441 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/exec_test.rb +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/extend_test.rb +1707 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/fixtures/test_staleness_check_across_importers.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/functions_test.rb +1974 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/importer_test.rb +421 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/logger_test.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/mock_importer.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more1_with_line_comments.css +26 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_results/more_import.css +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/_more_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more1.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/more_templates/more_import.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/plugin_test.rb +556 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/alt.css +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/basic.css +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/cached_import_option.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compact.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/complex.css +86 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/compressed.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/expanded.css +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/filename_fn.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/if.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_1_8.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_charset_ibm866.css +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/import_content.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/line_numbers.css +49 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/mixins.css +95 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/multiline.css +24 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/nested.css +22 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/options.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/parent_ref.css +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/script.css +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_import.css +31 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/scss_importee.css +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/subdir/subdir.css +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/units.css +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/results/warn_imported.css +0 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_conversion_test.rb +357 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/script_test.rb +1422 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/css_test.rb +1281 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/rx_test.rb +160 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/scss_test.rb +4157 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/scss/test_helper.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/source_map_test.rb +1055 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/superselector_test.rb +210 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_cached_import_option_partial.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_double_import_loop2.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_filename_fn_import.scss +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_ibm866.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_charset_utf8.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_imported_content.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/_same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/alt.sass +16 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/basic.sass +23 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/bork5.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/cached_import_option.scss +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compact.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/complex.sass +305 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/compressed.sass +15 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/double_import_loop1.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/expanded.sass +17 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/filename_fn.scss +18 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/if.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import.sass +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset.sass +9 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_1_8.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_charset_ibm866.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/import_content.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.less +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/importee.sass +19 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/line_numbers.sass +13 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixin_bork.sass +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/mixins.sass +76 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/multiline.sass +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork1.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork2.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork3.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_bork4.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_import.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/nested_mixin_bork.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/options.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/parent_ref.sass +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_ext.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/same_name_different_partiality.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/script.sass +101 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_import.scss +12 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/scss_importee.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/single_import_loop.sass +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up1.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/import_up2.scss +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +2 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/subdir/subdir.sass +6 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/units.sass +11 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn.sass +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/templates/warn_imported.sass +4 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/test_helper.rb +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/multibyte_string_scanner_test.rb +147 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/normalized_map_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util/subset_map_test.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/util_test.rb +438 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/sass/value_helpers_test.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/test/test_helper.rb +110 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CHANGELOG.md +1 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/CONTRIBUTING.md +38 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Gemfile +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Guardfile +8 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/README.md +349 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Rakefile +5 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/Vagrantfile +96 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen.rb +54 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb +327 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/bsd.rb +75 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/darwin.rb +48 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/linux.rb +81 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/polling.rb +58 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapters/windows.rb +91 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/directory_record.rb +406 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb +323 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/turnstile.rb +32 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/lib/listen/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/listen.gemspec +28 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapter_spec.rb +149 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/bsd_spec.rb +36 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/darwin_spec.rb +37 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/linux_spec.rb +47 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/polling_spec.rb +68 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/adapters/windows_spec.rb +30 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/directory_record_spec.rb +1250 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/listener_spec.rb +258 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen/turnstile_spec.rb +56 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/listen_spec.rb +67 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/spec_helper.rb +25 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/adapter_helper.rb +666 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/directory_record_helper.rb +57 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/fixtures_helper.rb +29 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/listeners_helper.rb +179 -0
- data/bundle/ruby/2.3.0/gems/sass-3.4.22/vendor/listen/spec/support/platform_helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/History.txt +278 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Manifest.txt +13 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/README.txt +64 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/Rakefile +12 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/composite_sexp_processor.rb +49 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/pt_testcase.rb +3125 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp.rb +338 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/sexp_processor.rb +695 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/lib/unique.rb +15 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_composite_sexp_processor.rb +69 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_environment.rb +94 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp.rb +356 -0
- data/bundle/ruby/2.3.0/gems/sexp_processor-4.7.0/test/test_sexp_processor.rb +373 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/CHANGES +426 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Gemfile +69 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/LICENSE +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.jp.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/README.md +1205 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/Rakefile +100 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/context.rb +11 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-parser.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/profile-render.rb +12 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-benchmarks.rb +119 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/run-diffbench.rb +21 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.erb +23 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.haml +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/benchmarks/view.slim +17 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/bin/slimrb +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/include.md +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/smart.md +102 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/jp/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/logic_less.md +137 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/smart.md +103 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/doc/translator.md +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/code_attributes.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/command.rb +128 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/controls.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/do_inserter.rb +33 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/embedded.rb +273 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/end_inserter.rb +62 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/engine.rb +41 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/erb_converter.rb +14 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/filter.rb +30 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/grammar.rb +20 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/include.rb +57 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/interpolation.rb +35 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/context.rb +127 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/logic_less/filter.rb +80 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/parser.rb +527 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/escaper.rb +42 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/filter.rb +96 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/smart/parser.rb +36 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/builder.rb +101 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/splat/filter.rb +91 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/template.rb +19 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/translator.rb +118 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/lib/slim/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/slim.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/helper.rb +211 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_blocks.rb +183 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_escaping.rb +150 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_evaluation.rb +180 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_output.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_code_structure.rb +168 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_commands.rb +223 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_embedded_engines.rb +242 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_encoding.rb +28 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_erb_converter.rb +67 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_attributes.rb +268 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_escaping.rb +65 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_html_structure.rb +537 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_parser_errors.rb +148 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_pretty.rb +166 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_ruby_errors.rb +207 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_slim_template.rb +77 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_tabs.rb +169 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_text_interpolation.rb +79 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_thread_options.rb +18 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/core/test_unicode.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/recursive.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/slimfile.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/subdir/test.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/files/textfile +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/include/test_include.rb +24 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/TESTS.md +1290 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/helper.rb +15 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/literate/run.rb +92 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/logic_less/test_logic_less.rb +295 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/Rakefile +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/application_controller.rb +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/entries_controller.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/controllers/slim_controller.rb +40 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/helpers/application_helper.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/models/entry.rb +16 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/entries/edit.html.slim +3 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/layouts/application.html.slim +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/_partial.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/content_for.html.slim +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/erb.html.erb +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/form_for.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/helper.html.slim +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/integers.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/no_layout.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/normal.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/partial.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/splat.html.slim +2 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/thread_options.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/variables.html.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/app/views/slim/xml.slim +1 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config.ru +4 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/application.rb +44 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/boot.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environment.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/environments/test.rb +34 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/inflections.rb +10 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/mime_types.rb +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/secret_token.rb +7 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/initializers/session_store.rb +8 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/locales/en.yml +5 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/config/routes.rb +60 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/script/rails +6 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/helper.rb +31 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/rails/test/test_slim.rb +90 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/smart/test_smart_text.rb +296 -0
- data/bundle/ruby/2.3.0/gems/slim-3.0.6/test/translator/test_translator.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/CHANGES +235 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/EXPRESSIONS.md +261 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Gemfile +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/LICENSE +20 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/README.md +267 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/Rakefile +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple.rb +64 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/engine.rb +67 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/engine.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/parser.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/template.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/erb/trimming.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/exceptions.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filter.rb +9 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/code_merger.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/control_flow.rb +42 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/dynamic_inliner.rb +71 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/encoding.rb +24 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/eraser.rb +22 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/escapable.rb +40 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/multi_flattener.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/remove_bom.rb +13 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/static_merger.rb +37 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/filters/validator.rb +15 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generator.rb +88 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/array_buffer.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/erb.rb +32 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/rails_output_buffer.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/generators/string_buffer.rb +25 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/grammar.rb +57 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_merger.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_remover.rb +35 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/attribute_sorter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/dispatcher.rb +31 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/fast.rb +130 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/filter.rb +21 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/pretty.rb +103 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/html/safe.rb +23 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/map.rb +105 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/dispatcher.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/engine_dsl.rb +145 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/grammar_dsl.rb +170 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/options.rb +87 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/mixins/template.rb +28 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/parser.rb +8 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates.rb +11 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/rails.rb +26 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/templates/tilt.rb +46 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/utils.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/lib/temple/version.rb +3 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/temple.gemspec +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_code_merger.rb +38 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_control_flow.rb +90 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_dynamic_inliner.rb +95 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_eraser.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_escapable.rb +49 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_multi_flattener.rb +33 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/filters/test_static_merger.rb +41 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/helper.rb +30 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_merger.rb +76 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_remover.rb +43 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_attribute_sorter.rb +48 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_fast.rb +97 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/html/test_pretty.rb +55 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_dispatcher.rb +70 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/mixins/test_grammar_dsl.rb +86 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_engine.rb +189 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_erb.rb +61 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_filter.rb +29 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_generator.rb +158 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_grammar.rb +47 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_map.rb +39 -0
- data/bundle/ruby/2.3.0/gems/temple-0.7.6/test/test_utils.rb +39 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Gemfile +4 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/History.rdoc +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Manifest +27 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/README.rdoc +240 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Rakefile +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/Todo.rdoc +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/examples/examples.rb +83 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table.rb +26 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/cell.rb +92 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/import.rb +3 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/row.rb +48 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb +14 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/style.rb +62 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table.rb +226 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/table_helper.rb +9 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/version.rb +5 -0
- data/bundle/ruby/2.3.0/gems/terminal-table-1.5.2/terminal-table.gemspec +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/CHANGELOG.md +84 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/COPYING +18 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Gemfile +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/HACKING +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/README.md +226 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/Rakefile +105 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/bin/tilt +122 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/TEMPLATES.md +524 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/docs/common.css +14 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt.rb +159 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/asciidoc.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/babel.rb +15 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/bluecloth.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/builder.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/coffee.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/creole.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/csv.rb +65 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erb.rb +57 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/erubis.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/etanni.rb +27 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/haml.rb +58 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/kramdown.rb +25 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/less.rb +30 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/liquid.rb +38 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/mapping.rb +265 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/markaby.rb +45 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/maruku.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/nokogiri.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/plain.rb +16 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/prawn.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/radius.rb +48 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdiscount.rb +39 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/rdoc.rb +40 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcarpet.rb +83 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/redcloth.rb +23 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/sass.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/string.rb +21 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/template.rb +295 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/wikicloth.rb +22 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/lib/tilt/yajl.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/index.txt +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/man/tilt.1.ronn +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/locals.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/markaby_other_static.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/render_twice.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/scope.mab +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/markaby/yielding.mab +2 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/test_helper.rb +64 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_asciidoctor_test.rb +50 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_babeltemplate.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_blueclothtemplate_test.rb +33 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_buildertemplate_test.rb +59 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_cache_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_coffeescripttemplate_test.rb +141 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_compilesite_test.rb +51 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_creoletemplate_test.rb +24 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_csv_test.rb +77 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erbtemplate_test.rb +239 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_erubistemplate_test.rb +151 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_etannitemplate_test.rb +174 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_hamltemplate_test.rb +166 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_kramdown_test.rb +20 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.less +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_lesstemplate_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_liquidtemplate_test.rb +78 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_mapping_test.rb +229 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markaby_test.rb +88 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_markdown_test.rb +177 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_marukutemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_metadata_test.rb +42 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_nokogiritemplate_test.rb +87 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate.prawn +1 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_prawntemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_radiustemplate_test.rb +75 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdiscounttemplate_test.rb +43 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_rdoctemplate_test.rb +29 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redcarpettemplate_test.rb +54 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_redclothtemplate_test.rb +36 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_sasstemplate_test.rb +41 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_stringtemplate_test.rb +171 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_template_test.rb +308 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_test.rb +60 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/test/tilt_yajltemplate_test.rb +101 -0
- data/bundle/ruby/2.3.0/gems/tilt-2.0.2/tilt.gemspec +114 -0
- data/lib/brakeman.rb +9 -1
- data/lib/brakeman/call_index.rb +1 -1
- data/lib/brakeman/checks/check_content_tag.rb +1 -1
- data/lib/brakeman/checks/check_cross_site_scripting.rb +1 -1
- data/lib/brakeman/checks/check_execute.rb +4 -0
- data/lib/brakeman/checks/check_forgery_setting.rb +3 -2
- data/lib/brakeman/checks/check_link_to.rb +1 -1
- data/lib/brakeman/checks/check_link_to_href.rb +2 -2
- data/lib/brakeman/checks/check_mass_assignment.rb +1 -1
- data/lib/brakeman/checks/check_redirect.rb +6 -0
- data/lib/brakeman/checks/check_secrets.rb +40 -0
- data/lib/brakeman/checks/check_sql.rb +1 -1
- data/lib/brakeman/processor.rb +6 -6
- data/lib/brakeman/processors/alias_processor.rb +29 -3
- data/lib/brakeman/processors/base_processor.rb +35 -4
- data/lib/brakeman/processors/controller_alias_processor.rb +4 -4
- data/lib/brakeman/processors/haml_template_processor.rb +1 -1
- data/lib/brakeman/processors/lib/basic_processor.rb +18 -0
- data/lib/brakeman/processors/lib/rails2_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -1
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +3 -2
- data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -1
- data/lib/brakeman/processors/template_alias_processor.rb +4 -4
- data/lib/brakeman/processors/template_processor.rb +1 -0
- data/lib/brakeman/report/report_codeclimate.rb +2 -1
- data/lib/brakeman/scanner.rb +1 -1
- data/lib/brakeman/tracker.rb +11 -1
- data/lib/brakeman/tracker/constants.rb +101 -0
- data/lib/brakeman/util.rb +4 -0
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning_codes.rb +1 -0
- data/lib/ruby_parser/bm_sexp.rb +6 -0
- metadata +1171 -162
@@ -0,0 +1,157 @@
|
|
1
|
+
# Frequently Asked Questions
|
2
|
+
|
3
|
+
## Haml
|
4
|
+
|
5
|
+
### Why is my markup indented properly in development mode, but not in production?
|
6
|
+
{#q-indentation-in-production}
|
7
|
+
|
8
|
+
To improve performance, Haml defaults to {Haml::Options#ugly "ugly" mode} in
|
9
|
+
Rails apps running in production.
|
10
|
+
|
11
|
+
### How do I put a punctuation mark after an element, like "`I like <strong>cake</strong>!`"?
|
12
|
+
{#q-punctuation}
|
13
|
+
|
14
|
+
Expressing the structure of a document
|
15
|
+
and expressing inline formatting are two very different problems.
|
16
|
+
Haml is mostly designed for structure,
|
17
|
+
so the best way to deal with formatting is to leave it to other languages
|
18
|
+
that are designed for it.
|
19
|
+
You could use Textile:
|
20
|
+
|
21
|
+
%p
|
22
|
+
:textile
|
23
|
+
I like *cake*!
|
24
|
+
|
25
|
+
or Markdown:
|
26
|
+
|
27
|
+
%p
|
28
|
+
:markdown
|
29
|
+
I like **cake**!
|
30
|
+
|
31
|
+
or plain old XHTML:
|
32
|
+
|
33
|
+
%p I like <strong>cake</strong>!
|
34
|
+
|
35
|
+
If you're inserting something that's generated by a helper, like a link,
|
36
|
+
then it's even easier:
|
37
|
+
|
38
|
+
%p== I like #{link_to 'chocolate', 'http://franschocolates.com'}!
|
39
|
+
|
40
|
+
### How do I stop Haml from indenting the contents of my `pre` and `textarea` tags?
|
41
|
+
{#q-preserve}
|
42
|
+
|
43
|
+
Because Haml automatically indents the HTML source code,
|
44
|
+
the contents of whitespace-sensitive tags like `pre` and `textarea`
|
45
|
+
can get screwed up.
|
46
|
+
The solution is to replace the newlines inside these tags
|
47
|
+
with HTML newline entities (`
`),
|
48
|
+
which Haml does using the {Haml::Helpers#preserve} and {Haml::Helpers#find_and_preserve} helpers.
|
49
|
+
|
50
|
+
Normally, Haml will do this for you automatically
|
51
|
+
when you're using a tag that needs it
|
52
|
+
(this can be customized using the {Haml::Options#preserve `:preserve`} option).
|
53
|
+
For example,
|
54
|
+
|
55
|
+
%p
|
56
|
+
%textarea= "Foo\nBar"
|
57
|
+
|
58
|
+
will be compiled to
|
59
|
+
|
60
|
+
<p>
|
61
|
+
<textarea>
|
62
|
+
Foo
Bar</textarea>
|
63
|
+
</p>
|
64
|
+
|
65
|
+
However, if a helper is generating the tag,
|
66
|
+
Haml can't detect that and so you'll have to call {Haml::Helpers#find_and_preserve} yourself.
|
67
|
+
You can also use `~`, which is the same as `=`
|
68
|
+
except that it automatically runs `find_and_preserve` on its input.
|
69
|
+
For example:
|
70
|
+
|
71
|
+
%p= find_and_preserve "<textarea>Foo\nBar</textarea>"
|
72
|
+
|
73
|
+
is the same as
|
74
|
+
|
75
|
+
%p~ "<textarea>Foo\nBar</textarea>"
|
76
|
+
|
77
|
+
and renders
|
78
|
+
|
79
|
+
<p><textarea>Foo
Bar</textarea></p>
|
80
|
+
|
81
|
+
### How do I make my long lines of Ruby code look nicer in my Haml document?
|
82
|
+
{#q-multiline}
|
83
|
+
|
84
|
+
Put them in a helper or your model.
|
85
|
+
|
86
|
+
Haml purposefully makes it annoying to put lots of Ruby code into your templates,
|
87
|
+
because lots of code doesn't belong in the view.
|
88
|
+
If you take that huge `link_to_remote` call
|
89
|
+
and move it to a `update_sidebar_link` helper,
|
90
|
+
it'll make your view both easier to read and more semantic.
|
91
|
+
|
92
|
+
If you absolutely must put lots of code in your template,
|
93
|
+
Haml offers a somewhat awkward multiline-continuation tool.
|
94
|
+
Put a `|` (pipe character) at the end of each line you want to be merged into one
|
95
|
+
(including the last line!).
|
96
|
+
For example:
|
97
|
+
|
98
|
+
%p= @this.is(way.too.much). |
|
99
|
+
code("and I should"). |
|
100
|
+
really_move.it.into( |
|
101
|
+
:a => @helper) |
|
102
|
+
|
103
|
+
Note that sometimes it is valid to include lots of Ruby in a template
|
104
|
+
when that Ruby is a helper call that passes in a lot of template information.
|
105
|
+
Thus when a function has lots of arguments,
|
106
|
+
it's possible to wrap it across multiple lines
|
107
|
+
as long as each line ends in a comma.
|
108
|
+
For example:
|
109
|
+
|
110
|
+
= link_to_remote "Add to cart",
|
111
|
+
:url => { :action => "add", :id => product.id },
|
112
|
+
:update => { :success => "cart", :failure => "error" }
|
113
|
+
|
114
|
+
### `form_for` is printing the form tag twice!
|
115
|
+
|
116
|
+
Make sure you're calling it with `-`, not `=`.
|
117
|
+
Just like in ERB, you have to do
|
118
|
+
|
119
|
+
<% form_for stuff do %>
|
120
|
+
...
|
121
|
+
<% end %>
|
122
|
+
|
123
|
+
in Haml, you have to do
|
124
|
+
|
125
|
+
- form_for stuff do
|
126
|
+
...
|
127
|
+
|
128
|
+
### I have Haml installed. Why is Rails (only looking for `.html.erb` files | rendering Haml files as plain text | rendering Haml files as blank pages)?
|
129
|
+
{#q-blank-page}
|
130
|
+
|
131
|
+
There are several reasons these things might be happening.
|
132
|
+
First of all, make sure that Haml really is installed;
|
133
|
+
either you've loaded the gem (via `config.gem` in Rails 2.3 or in the Gemfile in Rails 3),
|
134
|
+
or `vendor/plugins/haml` exists and contains files.
|
135
|
+
Then try restarting Mongrel or WEBrick or whatever you might be using.
|
136
|
+
|
137
|
+
Finally, if none of these work,
|
138
|
+
chances are you've got some localization plugin like Globalize installed.
|
139
|
+
Such plugins often don't play nicely with Haml.
|
140
|
+
Luckily, there's usually an easy fix.
|
141
|
+
For Globalize, just edit `globalize/lib/globalize/rails/action_view.rb`
|
142
|
+
and change
|
143
|
+
|
144
|
+
@@re_extension = /\.(rjs|rhtml|rxml)$/
|
145
|
+
|
146
|
+
to
|
147
|
+
|
148
|
+
@@re_extension = /\.(rjs|rhtml|rxml|erb|builder|haml)$/
|
149
|
+
|
150
|
+
For other plugins, a little searching will probably turn up a way to fix them as well.
|
151
|
+
|
152
|
+
## You still haven't answered my question!
|
153
|
+
|
154
|
+
Sorry! Try looking at the [Haml](http://haml.info/docs/yardoc/file.REFERENCE.html) reference,
|
155
|
+
If you can't find an answer there,
|
156
|
+
feel free to ask in `#haml` on irc.freenode.net
|
157
|
+
or send an email to the [mailing list](http://groups.google.com/group/haml).
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2006-2009 Hampton Catlin and Nathan Weizenbaum
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# Haml
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/haml/haml.png?branch=master)](http://travis-ci.org/haml/haml)
|
4
|
+
|
5
|
+
Haml is a templating engine for HTML. It's designed to make it both easier and
|
6
|
+
more pleasant to write HTML documents, by eliminating redundancy, reflecting the
|
7
|
+
underlying structure that the document represents, and providing an elegant syntax
|
8
|
+
that's both powerful and easy to understand.
|
9
|
+
|
10
|
+
## Basic Usage
|
11
|
+
|
12
|
+
Haml can be used from the command line or as part of a Ruby web framework. The
|
13
|
+
first step is to install the gem:
|
14
|
+
|
15
|
+
gem install haml
|
16
|
+
|
17
|
+
After you write some Haml, you can run
|
18
|
+
|
19
|
+
haml document.haml
|
20
|
+
|
21
|
+
to compile it to HTML. For more information on these commands, check out
|
22
|
+
|
23
|
+
haml --help
|
24
|
+
|
25
|
+
To use Haml programatically, check out the [YARD
|
26
|
+
documentation](http://haml.info/docs/yardoc/).
|
27
|
+
|
28
|
+
## Using Haml with Rails
|
29
|
+
|
30
|
+
To use Haml with Rails, simply add Haml to your Gemfile and run `bundle`.
|
31
|
+
|
32
|
+
If you'd like to replace Rails's Erb-based generators with Haml, add
|
33
|
+
[haml-rails](https://github.com/indirect/haml-rails) to your Gemfile as well.
|
34
|
+
|
35
|
+
## Formatting
|
36
|
+
|
37
|
+
The most basic element of Haml is a shorthand for creating HTML:
|
38
|
+
|
39
|
+
%tagname{:attr1 => 'value1', :attr2 => 'value2'} Contents
|
40
|
+
|
41
|
+
No end-tag is needed; Haml handles that automatically. If you prefer HTML-style
|
42
|
+
attributes, you can also use:
|
43
|
+
|
44
|
+
%tagname(attr1='value1' attr2='value2') Contents
|
45
|
+
|
46
|
+
Adding `class` and `id` attributes is even easier. Haml uses the same syntax as
|
47
|
+
the CSS that styles the document:
|
48
|
+
|
49
|
+
%tagname#id.class
|
50
|
+
|
51
|
+
In fact, when you're using the `<div>` tag, it becomes _even easier_. Because
|
52
|
+
`<div>` is such a common element, a tag without a name defaults to a div. So
|
53
|
+
|
54
|
+
#foo Hello!
|
55
|
+
|
56
|
+
becomes
|
57
|
+
|
58
|
+
<div id='foo'>Hello!</div>
|
59
|
+
|
60
|
+
Haml uses indentation to bring the individual elements to represent the HTML
|
61
|
+
structure. A tag's children are indented beneath than the parent tag. Again, a
|
62
|
+
closing tag is automatically added. For example:
|
63
|
+
|
64
|
+
%ul
|
65
|
+
%li Salt
|
66
|
+
%li Pepper
|
67
|
+
|
68
|
+
becomes:
|
69
|
+
|
70
|
+
<ul>
|
71
|
+
<li>Salt</li>
|
72
|
+
<li>Pepper</li>
|
73
|
+
</ul>
|
74
|
+
|
75
|
+
You can also put plain text as a child of an element:
|
76
|
+
|
77
|
+
%p
|
78
|
+
Hello,
|
79
|
+
World!
|
80
|
+
|
81
|
+
It's also possible to embed Ruby code into Haml documents. An equals sign, `=`,
|
82
|
+
will output the result of the code. A hyphen, `-`, will run the code but not
|
83
|
+
output the result. You can even use control statements like `if` and `while`:
|
84
|
+
|
85
|
+
%p
|
86
|
+
Date/Time:
|
87
|
+
- now = DateTime.now
|
88
|
+
%strong= now
|
89
|
+
- if now > DateTime.parse("December 31, 2006")
|
90
|
+
= "Happy new " + "year!"
|
91
|
+
|
92
|
+
Haml provides far more tools than those presented here. Check out the [reference
|
93
|
+
documentation](http://haml.info/docs/yardoc/file.REFERENCE.html)
|
94
|
+
for full details.
|
95
|
+
|
96
|
+
### Indentation
|
97
|
+
|
98
|
+
Haml's indentation can be made up of one or more tabs or spaces. However,
|
99
|
+
indentation must be consistent within a given document. Hard tabs and spaces
|
100
|
+
can't be mixed, and the same number of tabs or spaces must be used throughout.
|
101
|
+
|
102
|
+
## Contributing
|
103
|
+
|
104
|
+
Contributions are welcomed, but before you get started please read the
|
105
|
+
[guidelines](http://haml.info/development.html#contributing).
|
106
|
+
|
107
|
+
After forking and then cloning the repo locally, install Bundler and then use it
|
108
|
+
to install the development gem dependecies:
|
109
|
+
|
110
|
+
gem install bundler
|
111
|
+
bundle install
|
112
|
+
|
113
|
+
Once this is complete, you should be able to run the test suite:
|
114
|
+
|
115
|
+
rake
|
116
|
+
|
117
|
+
You'll get a warning that you need to install haml-spec, so run this:
|
118
|
+
|
119
|
+
git submodule update --init
|
120
|
+
|
121
|
+
At this point `rake` should run without error or warning and you are ready to
|
122
|
+
start working on your patch!
|
123
|
+
|
124
|
+
Note that you can also run just one test out of the test suite if you're working
|
125
|
+
on a specific area:
|
126
|
+
|
127
|
+
ruby -Itest test/helper_test.rb -n test_buffer_access
|
128
|
+
|
129
|
+
Haml supports Ruby 1.8.7 and higher, so please make sure your changes run on
|
130
|
+
both 1.9 and 1.8.
|
131
|
+
|
132
|
+
## Team
|
133
|
+
|
134
|
+
### Current Maintainers
|
135
|
+
|
136
|
+
* [Norman Clarke](http://github.com/norman)
|
137
|
+
* [Matt Wildig](http://github.com/mattwildig)
|
138
|
+
* [Akira Matsuda](https://github.com/amatsuda)
|
139
|
+
|
140
|
+
### Alumni
|
141
|
+
|
142
|
+
Haml was created by [Hampton Catlin](http://hamptoncatlin.com), the author of
|
143
|
+
the original implementation. Hampton is no longer involved in day-to-day coding,
|
144
|
+
but still consults on language issues.
|
145
|
+
|
146
|
+
[Nathan Weizenbaum](http://nex-3.com) was for many years the primary developer
|
147
|
+
and architect of the "modern" Ruby implementation of Haml.
|
148
|
+
|
149
|
+
|
150
|
+
## License
|
151
|
+
|
152
|
+
Some of Nathan's work on Haml was supported by Unspace Interactive.
|
153
|
+
|
154
|
+
Beyond that, the implementation is licensed under the MIT License.
|
155
|
+
|
156
|
+
Copyright (c) 2006-2013 Hampton Catlin, Nathan Weizenbaum and the Haml team
|
157
|
+
|
158
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
159
|
+
this software and associated documentation files (the "Software"), to deal in
|
160
|
+
the Software without restriction, including without limitation the rights to
|
161
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
162
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
163
|
+
subject to the following conditions:
|
164
|
+
|
165
|
+
The above copyright notice and this permission notice shall be included in all
|
166
|
+
copies or substantial portions of the Software.
|
167
|
+
|
168
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
169
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
170
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
171
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
172
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
173
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,1294 @@
|
|
1
|
+
# Haml (HTML Abstraction Markup Language)
|
2
|
+
|
3
|
+
Haml is a markup language that's used to cleanly and simply describe the HTML of
|
4
|
+
any web document, without the use of inline code. Haml functions as a
|
5
|
+
replacement for inline page templating systems such as PHP, ERB, and ASP.
|
6
|
+
However, Haml avoids the need for explicitly coding HTML into the template,
|
7
|
+
because it is actually an abstract description of the HTML, with some code to
|
8
|
+
generate dynamic content.
|
9
|
+
|
10
|
+
## Features
|
11
|
+
|
12
|
+
* Whitespace active
|
13
|
+
* Well-formatted markup
|
14
|
+
* DRY
|
15
|
+
* Follows CSS conventions
|
16
|
+
* Integrates Ruby code
|
17
|
+
* Implements Rails templates with the .haml extension
|
18
|
+
|
19
|
+
## Using Haml
|
20
|
+
|
21
|
+
Haml can be used in three ways:
|
22
|
+
|
23
|
+
* as a command-line tool,
|
24
|
+
* as a plugin for Ruby on Rails,
|
25
|
+
* and as a standalone Ruby module.
|
26
|
+
|
27
|
+
The first step for all of these is to install the Haml gem:
|
28
|
+
|
29
|
+
gem install haml
|
30
|
+
|
31
|
+
To run Haml from the command line, just use
|
32
|
+
|
33
|
+
haml input.haml output.html
|
34
|
+
|
35
|
+
Use `haml --help` for full documentation.
|
36
|
+
|
37
|
+
To use Haml with Rails, add the following line to the Gemfile:
|
38
|
+
|
39
|
+
gem "haml"
|
40
|
+
|
41
|
+
Once it's installed, all view files with the `".html.haml"` extension will be
|
42
|
+
compiled using Haml.
|
43
|
+
|
44
|
+
You can access instance variables in Haml templates the same way you do in ERB
|
45
|
+
templates. Helper methods are also available in Haml templates. For example:
|
46
|
+
|
47
|
+
# file: app/controllers/movies_controller.rb
|
48
|
+
|
49
|
+
class MoviesController < ApplicationController
|
50
|
+
def index
|
51
|
+
@title = "Teen Wolf"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
-# file: app/views/movies/index.html.haml
|
56
|
+
|
57
|
+
#content
|
58
|
+
.title
|
59
|
+
%h1= @title
|
60
|
+
= link_to 'Home', home_url
|
61
|
+
|
62
|
+
may be compiled to:
|
63
|
+
|
64
|
+
<div id='content'>
|
65
|
+
<div class='title'>
|
66
|
+
<h1>Teen Wolf</h1>
|
67
|
+
<a href='/'>Home</a>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
### Rails XSS Protection
|
72
|
+
|
73
|
+
Haml supports Rails' XSS protection scheme, which was introduced in Rails 2.3.5+
|
74
|
+
and is enabled by default in 3.0.0+. If it's enabled, Haml's
|
75
|
+
{Haml::Options#escape_html `:escape_html`} option is set to `true` by default -
|
76
|
+
like in ERB, all strings printed to a Haml template are escaped by default. Also
|
77
|
+
like ERB, strings marked as HTML safe are not escaped. Haml also has [its own
|
78
|
+
syntax for printing a raw string to the template](#unescaping_html).
|
79
|
+
|
80
|
+
If the `:escape_html` option is set to false when XSS protection is enabled,
|
81
|
+
Haml doesn't escape Ruby strings by default. However, if a string marked
|
82
|
+
HTML-safe is passed to [Haml's escaping syntax](#escaping_html), it won't be
|
83
|
+
escaped.
|
84
|
+
|
85
|
+
Finally, all the {Haml::Helpers Haml helpers} that return strings that are known
|
86
|
+
to be HTML safe are marked as such. In addition, string input is escaped unless
|
87
|
+
it's HTML safe.
|
88
|
+
|
89
|
+
### Ruby Module
|
90
|
+
|
91
|
+
Haml can also be used completely separately from Rails and ActionView. To do
|
92
|
+
this, install the gem with RubyGems:
|
93
|
+
|
94
|
+
gem install haml
|
95
|
+
|
96
|
+
You can then use it by including the "haml" gem in Ruby code, and using
|
97
|
+
{Haml::Engine} like so:
|
98
|
+
|
99
|
+
engine = Haml::Engine.new("%p Haml code!")
|
100
|
+
engine.render #=> "<p>Haml code!</p>\n"
|
101
|
+
|
102
|
+
### Options
|
103
|
+
|
104
|
+
Haml understands various configuration options that affect its performance and
|
105
|
+
output.
|
106
|
+
|
107
|
+
In Rails, options can be set by setting the {Haml::Template#options Haml::Template.options}
|
108
|
+
hash in an initializer:
|
109
|
+
|
110
|
+
# config/initializers/haml.rb
|
111
|
+
Haml::Template.options[:format] = :html5
|
112
|
+
|
113
|
+
Outside Rails, you can set them by configuring them globally in
|
114
|
+
Haml::Options.defaults:
|
115
|
+
|
116
|
+
Haml::Options.defaults[:format] = :html5
|
117
|
+
|
118
|
+
Finally, you can also set them by passing an options hash to
|
119
|
+
{Haml::Engine#initialize}. For the complete list of available options, please
|
120
|
+
see {Haml::Options}.
|
121
|
+
|
122
|
+
### Encodings
|
123
|
+
|
124
|
+
When using Ruby 1.9 or later, Haml supports the same sorts of
|
125
|
+
encoding-declaration comments that Ruby does. Although both Ruby and Haml
|
126
|
+
support several different styles, the easiest it just to add `-# coding:
|
127
|
+
encoding-name` at the beginning of the Haml template (it must come before all
|
128
|
+
other lines). This will tell Haml that the template is encoded using the named
|
129
|
+
encoding.
|
130
|
+
|
131
|
+
By default, the HTML generated by Haml has the same encoding as the Haml
|
132
|
+
template. However, if `Encoding.default_internal` is set, Haml will attempt to
|
133
|
+
use that instead. In addition, the {Haml::Options#encoding `:encoding` option}
|
134
|
+
can be used to specify an output encoding manually.
|
135
|
+
|
136
|
+
Note that, like Ruby, Haml does not support templates encoded in UTF-16 or
|
137
|
+
UTF-32, since these encodings are not compatible with ASCII. It is possible to
|
138
|
+
use these as the output encoding, though.
|
139
|
+
|
140
|
+
## Plain Text
|
141
|
+
|
142
|
+
A substantial portion of any HTML document is its content, which is plain old
|
143
|
+
text. Any Haml line that's not interpreted as something else is taken to be
|
144
|
+
plain text, and passed through unmodified. For example:
|
145
|
+
|
146
|
+
%gee
|
147
|
+
%whiz
|
148
|
+
Wow this is cool!
|
149
|
+
|
150
|
+
is compiled to:
|
151
|
+
|
152
|
+
<gee>
|
153
|
+
<whiz>
|
154
|
+
Wow this is cool!
|
155
|
+
</whiz>
|
156
|
+
</gee>
|
157
|
+
|
158
|
+
Note that HTML tags are passed through unmodified as well. If you have some HTML
|
159
|
+
you don't want to convert to Haml, or you're converting a file line-by-line, you
|
160
|
+
can just include it as-is. For example:
|
161
|
+
|
162
|
+
%p
|
163
|
+
<div id="blah">Blah!</div>
|
164
|
+
|
165
|
+
is compiled to:
|
166
|
+
|
167
|
+
<p>
|
168
|
+
<div id="blah">Blah!</div>
|
169
|
+
</p>
|
170
|
+
|
171
|
+
### Escaping: `\`
|
172
|
+
|
173
|
+
The backslash character escapes the first character of a line, allowing use of
|
174
|
+
otherwise interpreted characters as plain text. For example:
|
175
|
+
|
176
|
+
%title
|
177
|
+
= @title
|
178
|
+
\= @title
|
179
|
+
|
180
|
+
is compiled to:
|
181
|
+
|
182
|
+
<title>
|
183
|
+
MyPage
|
184
|
+
= @title
|
185
|
+
</title>
|
186
|
+
|
187
|
+
## HTML Elements
|
188
|
+
|
189
|
+
### Element Name: `%`
|
190
|
+
|
191
|
+
The percent character is placed at the beginning of a line. It's followed
|
192
|
+
immediately by the name of an element, then optionally by modifiers (see below),
|
193
|
+
a space, and text to be rendered inside the element. It creates an element in
|
194
|
+
the form of `<element></element>`. For example:
|
195
|
+
|
196
|
+
%one
|
197
|
+
%two
|
198
|
+
%three Hey there
|
199
|
+
|
200
|
+
is compiled to:
|
201
|
+
|
202
|
+
<one>
|
203
|
+
<two>
|
204
|
+
<three>Hey there</three>
|
205
|
+
</two>
|
206
|
+
</one>
|
207
|
+
|
208
|
+
Any string is a valid element name; Haml will automatically generate opening and
|
209
|
+
closing tags for any element.
|
210
|
+
|
211
|
+
### Attributes: `{}` or `()` {#attributes}
|
212
|
+
|
213
|
+
Brackets represent a Ruby hash that is used for specifying the attributes of an
|
214
|
+
element. It is literally evaluated as a Ruby hash, so logic will work in it and
|
215
|
+
local variables may be used. Quote characters within the attribute will be
|
216
|
+
replaced by appropriate escape sequences. The hash is placed after the tag is
|
217
|
+
defined. For example:
|
218
|
+
|
219
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
220
|
+
|
221
|
+
is compiled to:
|
222
|
+
|
223
|
+
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'></html>
|
224
|
+
|
225
|
+
Attribute hashes can also be stretched out over multiple lines to accommodate
|
226
|
+
many attributes. However, newlines may only be placed immediately after commas.
|
227
|
+
For example:
|
228
|
+
|
229
|
+
%script{:type => "text/javascript",
|
230
|
+
:src => "javascripts/script_#{2 + 7}"}
|
231
|
+
|
232
|
+
is compiled to:
|
233
|
+
|
234
|
+
<script src='javascripts/script_9' type='text/javascript'></script>
|
235
|
+
|
236
|
+
#### `:class` and `:id` Attributes
|
237
|
+
{#class-and-id-attributes}
|
238
|
+
|
239
|
+
The `:class` and `:id` attributes can also be specified as a Ruby array whose
|
240
|
+
elements will be joined together. A `:class` array is joined with `" "` and an
|
241
|
+
`:id` array is joined with `"_"`. For example:
|
242
|
+
|
243
|
+
%div{:id => [@item.type, @item.number], :class => [@item.type, @item.urgency]}
|
244
|
+
|
245
|
+
is equivalent to:
|
246
|
+
|
247
|
+
%div{:id => "#{@item.type}_#{@item.number}", :class => "#{@item.type} #{@item.urgency}"}
|
248
|
+
|
249
|
+
The array will first be flattened and any elements that do not test as true will
|
250
|
+
be removed. The remaining elements will be converted to strings. For example:
|
251
|
+
|
252
|
+
%div{:class => [@item.type, @item == @sortcol && [:sort, @sortdir]] } Contents
|
253
|
+
|
254
|
+
could render as any of:
|
255
|
+
|
256
|
+
<div class="numeric sort ascending">Contents</div>
|
257
|
+
<div class="numeric">Contents</div>
|
258
|
+
<div class="sort descending">Contents</div>
|
259
|
+
<div>Contents</div>
|
260
|
+
|
261
|
+
depending on whether `@item.type` is `"numeric"` or `nil`, whether `@item == @sortcol`,
|
262
|
+
and whether `@sortdir` is `"ascending"` or `"descending"`.
|
263
|
+
|
264
|
+
If a single value is specified and it evaluates to false it is ignored;
|
265
|
+
otherwise it gets converted to a string. For example:
|
266
|
+
|
267
|
+
.item{:class => @item.is_empty? && "empty"}
|
268
|
+
|
269
|
+
could render as either of:
|
270
|
+
|
271
|
+
class="item"
|
272
|
+
class="item empty"
|
273
|
+
|
274
|
+
#### HTML-style Attributes: `()`
|
275
|
+
|
276
|
+
Haml also supports a terser, less Ruby-specific attribute syntax based on HTML's
|
277
|
+
attributes. These are used with parentheses instead of brackets, like so:
|
278
|
+
|
279
|
+
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en")
|
280
|
+
|
281
|
+
Ruby variables can be used by omitting the quotes. Local variables or instance
|
282
|
+
variables can be used. For example:
|
283
|
+
|
284
|
+
%a(title=@title href=href) Stuff
|
285
|
+
|
286
|
+
This is the same as:
|
287
|
+
|
288
|
+
%a{:title => @title, :href => href} Stuff
|
289
|
+
|
290
|
+
Because there are no commas separating attributes, though, more complicated
|
291
|
+
expressions aren't allowed. For those you'll have to use the `{}` syntax. You
|
292
|
+
can, however, use both syntaxes together:
|
293
|
+
|
294
|
+
%a(title=@title){:href => @link.href} Stuff
|
295
|
+
|
296
|
+
You can also use `#{}` interpolation to insert complicated expressions in a
|
297
|
+
HTML-style attribute:
|
298
|
+
|
299
|
+
%span(class="widget_#{@widget.number}")
|
300
|
+
|
301
|
+
HTML-style attributes can be stretched across multiple lines just like
|
302
|
+
hash-style attributes:
|
303
|
+
|
304
|
+
%script(type="text/javascript"
|
305
|
+
src="javascripts/script_#{2 + 7}")
|
306
|
+
|
307
|
+
#### Ruby 1.9-style Hashes
|
308
|
+
|
309
|
+
On Ruby 1.9, Haml also supports Ruby's new hash syntax:
|
310
|
+
|
311
|
+
%a{title: @title, href: href} Stuff
|
312
|
+
|
313
|
+
#### Attribute Methods
|
314
|
+
|
315
|
+
A Ruby method call that returns a hash can be substituted for the hash contents.
|
316
|
+
For example, {Haml::Helpers} defines the following method:
|
317
|
+
|
318
|
+
def html_attrs(lang = 'en-US')
|
319
|
+
{:xmlns => "http://www.w3.org/1999/xhtml", 'xml:lang' => lang, :lang => lang}
|
320
|
+
end
|
321
|
+
|
322
|
+
This can then be used in Haml, like so:
|
323
|
+
|
324
|
+
%html{html_attrs('fr-fr')}
|
325
|
+
|
326
|
+
This is compiled to:
|
327
|
+
|
328
|
+
<html lang='fr-fr' xml:lang='fr-fr' xmlns='http://www.w3.org/1999/xhtml'>
|
329
|
+
</html>
|
330
|
+
|
331
|
+
You can use as many such attribute methods as you want by separating them with
|
332
|
+
commas, like a Ruby argument list. All the hashes will be merged together, from
|
333
|
+
left to right. For example, if you defined
|
334
|
+
|
335
|
+
def hash1
|
336
|
+
{:bread => 'white', :filling => 'peanut butter and jelly'}
|
337
|
+
end
|
338
|
+
|
339
|
+
def hash2
|
340
|
+
{:bread => 'whole wheat'}
|
341
|
+
end
|
342
|
+
|
343
|
+
then
|
344
|
+
|
345
|
+
%sandwich{hash1, hash2, :delicious => 'true'}/
|
346
|
+
|
347
|
+
would compile to:
|
348
|
+
|
349
|
+
<sandwich bread='whole wheat' delicious='true' filling='peanut butter and jelly' />
|
350
|
+
|
351
|
+
Note that the Haml attributes list has the same syntax as a Ruby method call.
|
352
|
+
This means that any attribute methods must come before the hash literal.
|
353
|
+
|
354
|
+
Attribute methods aren't supported for HTML-style attributes.
|
355
|
+
|
356
|
+
#### Boolean Attributes
|
357
|
+
|
358
|
+
Some attributes, such as "checked" for `input` tags or "selected" for `option`
|
359
|
+
tags, are "boolean" in the sense that their values don't matter - it only
|
360
|
+
matters whether or not they're present. In HTML (but not XHTML), these
|
361
|
+
attributes can be written as
|
362
|
+
|
363
|
+
<input selected>
|
364
|
+
|
365
|
+
To do this in Haml using hash-style attributes, just assign a Ruby `true` value
|
366
|
+
to the attribute:
|
367
|
+
|
368
|
+
%input{:selected => true}
|
369
|
+
|
370
|
+
In XHTML, the only valid value for these attributes is the name of the
|
371
|
+
attribute. Thus this will render in XHTML as
|
372
|
+
|
373
|
+
<input selected='selected'>
|
374
|
+
|
375
|
+
To set these attributes to false, simply assign them to a Ruby false value. In
|
376
|
+
both XHTML and HTML,
|
377
|
+
|
378
|
+
%input{:selected => false}
|
379
|
+
|
380
|
+
will just render as:
|
381
|
+
|
382
|
+
<input>
|
383
|
+
|
384
|
+
HTML-style boolean attributes can be written just like HTML:
|
385
|
+
|
386
|
+
%input(selected)
|
387
|
+
|
388
|
+
or using `true` and `false`:
|
389
|
+
|
390
|
+
%input(selected=true)
|
391
|
+
|
392
|
+
#### HTML5 Custom Data Attributes
|
393
|
+
|
394
|
+
HTML5 allows for adding [custom non-visible data
|
395
|
+
attributes](http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data)
|
396
|
+
to elements using attribute names beginning with `data-`. Custom data attributes
|
397
|
+
can be used in Haml by using the key `:data` with a Hash value in an attribute
|
398
|
+
hash. Each of the key/value pairs in the Hash will be transformed into a custom
|
399
|
+
data attribute. For example:
|
400
|
+
|
401
|
+
%a{:href=>"/posts", :data => {:author_id => 123}} Posts By Author
|
402
|
+
|
403
|
+
will render as:
|
404
|
+
|
405
|
+
<a data-author-id='123' href='/posts'>Posts By Author</a>
|
406
|
+
|
407
|
+
Notice that the underscore in `author_id` was replaced by a hyphen. If you wish
|
408
|
+
to suppress this behavior, you can set Haml's
|
409
|
+
{Haml::Options#hyphenate_data_attrs `:hyphenate_data_attrs` option} to `false`,
|
410
|
+
and the output will be rendered as:
|
411
|
+
|
412
|
+
<a data-author_id='123' href='/posts'>Posts By Author</a>
|
413
|
+
|
414
|
+
### Class and ID: `.` and `#`
|
415
|
+
|
416
|
+
The period and pound sign are borrowed from CSS. They are used as shortcuts to
|
417
|
+
specify the `class` and `id` attributes of an element, respectively. Multiple
|
418
|
+
class names can be specified in a similar way to CSS, by chaining the class
|
419
|
+
names together with periods. They are placed immediately after the tag and
|
420
|
+
before an attributes hash. For example:
|
421
|
+
|
422
|
+
%div#things
|
423
|
+
%span#rice Chicken Fried
|
424
|
+
%p.beans{ :food => 'true' } The magical fruit
|
425
|
+
%h1.class.otherclass#id La La La
|
426
|
+
|
427
|
+
is compiled to:
|
428
|
+
|
429
|
+
<div id='things'>
|
430
|
+
<span id='rice'>Chicken Fried</span>
|
431
|
+
<p class='beans' food='true'>The magical fruit</p>
|
432
|
+
<h1 class='class otherclass' id='id'>La La La</h1>
|
433
|
+
</div>
|
434
|
+
|
435
|
+
And,
|
436
|
+
|
437
|
+
%div#content
|
438
|
+
%div.articles
|
439
|
+
%div.article.title Doogie Howser Comes Out
|
440
|
+
%div.article.date 2006-11-05
|
441
|
+
%div.article.entry
|
442
|
+
Neil Patrick Harris would like to dispel any rumors that he is straight
|
443
|
+
|
444
|
+
is compiled to:
|
445
|
+
|
446
|
+
<div id='content'>
|
447
|
+
<div class='articles'>
|
448
|
+
<div class='article title'>Doogie Howser Comes Out</div>
|
449
|
+
<div class='article date'>2006-11-05</div>
|
450
|
+
<div class='article entry'>
|
451
|
+
Neil Patrick Harris would like to dispel any rumors that he is straight
|
452
|
+
</div>
|
453
|
+
</div>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
These shortcuts can be combined with long-hand attributes; the two values will
|
457
|
+
be merged together as though they were all placed in an array (see [the
|
458
|
+
documentation on `:class` and `:id` attributes](#class-and-id-attributes)). For
|
459
|
+
example:
|
460
|
+
|
461
|
+
%div#Article.article.entry{:id => @article.number, :class => @article.visibility}
|
462
|
+
|
463
|
+
is equivalent to
|
464
|
+
|
465
|
+
%div{:id => ['Article', @article.number], :class => ['article', 'entry', @article.visibility]} Gabba Hey
|
466
|
+
|
467
|
+
and could compile to:
|
468
|
+
|
469
|
+
<div class="article entry visible" id="Article_27">Gabba Hey</div>
|
470
|
+
|
471
|
+
#### Implicit Div Elements
|
472
|
+
|
473
|
+
Because divs are used so often, they're the default elements. If you only define
|
474
|
+
a class and/or id using `.` or `#`, a div is automatically used. For example:
|
475
|
+
|
476
|
+
#collection
|
477
|
+
.item
|
478
|
+
.description What a cool item!
|
479
|
+
|
480
|
+
is the same as:
|
481
|
+
|
482
|
+
%div#collection
|
483
|
+
%div.item
|
484
|
+
%div.description What a cool item!
|
485
|
+
|
486
|
+
and is compiled to:
|
487
|
+
|
488
|
+
<div id='collection'>
|
489
|
+
<div class='item'>
|
490
|
+
<div class='description'>What a cool item!</div>
|
491
|
+
</div>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
### Empty (void) Tags: `/`
|
495
|
+
|
496
|
+
The forward slash character, when placed at the end of a tag definition, causes
|
497
|
+
Haml to treat it as being an empty (or void) element. Depending on the format,
|
498
|
+
the tag will be rendered either without a closing tag (`:html4` or `:html5`), or
|
499
|
+
as a self-closing tag (`:xhtml`). For example:
|
500
|
+
|
501
|
+
%br/
|
502
|
+
%meta{'http-equiv' => 'Content-Type', :content => 'text/html'}/
|
503
|
+
|
504
|
+
is compiled to:
|
505
|
+
|
506
|
+
<br>
|
507
|
+
<meta content='text/html' http-equiv='Content-Type'>
|
508
|
+
|
509
|
+
when the format is `:html4` or `:html5`, and to
|
510
|
+
|
511
|
+
<br />
|
512
|
+
<meta content='text/html' http-equiv='Content-Type' />
|
513
|
+
|
514
|
+
when the format is `:xhtml`.
|
515
|
+
|
516
|
+
Some tags are automatically treated as being empty, as long as they have no
|
517
|
+
content in the Haml source. `meta`, `img`, `link`, `br`, `hr`, `input`,
|
518
|
+
`area`, `param`, `col` and `base` tags are treated as empty by default. This
|
519
|
+
list can be customized by setting the {Haml::Options#autoclose `:autoclose`}
|
520
|
+
option.
|
521
|
+
|
522
|
+
### Whitespace Removal: `>` and `<`
|
523
|
+
|
524
|
+
`>` and `<` give you more control over the whitespace near a tag. `>` will
|
525
|
+
remove all whitespace surrounding a tag, while `<` will remove all whitespace
|
526
|
+
immediately within a tag. You can think of them as alligators eating the
|
527
|
+
whitespace: `>` faces out of the tag and eats the whitespace on the outside, and
|
528
|
+
`<` faces into the tag and eats the whitespace on the inside. They're placed at
|
529
|
+
the end of a tag definition, after class, id, and attribute declarations but
|
530
|
+
before `/` or `=`. For example:
|
531
|
+
|
532
|
+
%blockquote<
|
533
|
+
%div
|
534
|
+
Foo!
|
535
|
+
|
536
|
+
is compiled to:
|
537
|
+
|
538
|
+
<blockquote><div>
|
539
|
+
Foo!
|
540
|
+
</div></blockquote>
|
541
|
+
|
542
|
+
And:
|
543
|
+
|
544
|
+
%img
|
545
|
+
%img>
|
546
|
+
%img
|
547
|
+
|
548
|
+
is compiled to:
|
549
|
+
|
550
|
+
<img /><img /><img />
|
551
|
+
|
552
|
+
And:
|
553
|
+
|
554
|
+
%p<= "Foo\nBar"
|
555
|
+
|
556
|
+
is compiled to:
|
557
|
+
|
558
|
+
<p>Foo
|
559
|
+
Bar</p>
|
560
|
+
|
561
|
+
And finally:
|
562
|
+
|
563
|
+
%img
|
564
|
+
%pre><
|
565
|
+
foo
|
566
|
+
bar
|
567
|
+
%img
|
568
|
+
|
569
|
+
is compiled to:
|
570
|
+
|
571
|
+
<img /><pre>foo
|
572
|
+
bar</pre><img />
|
573
|
+
|
574
|
+
### Object Reference: `[]`
|
575
|
+
|
576
|
+
Square brackets follow a tag definition and contain a Ruby object that is used
|
577
|
+
to set the class and id of that tag. The class is set to the object's class
|
578
|
+
(transformed to use underlines rather than camel case) and the id is set to the
|
579
|
+
object's class, followed by the value of its `#to_key` or `#id` method (in that
|
580
|
+
order). This is most useful for elements that represent instances of Active
|
581
|
+
Model models. Additionally, the second argument (if present) will be used as a
|
582
|
+
prefix for both the id and class attributes. For example:
|
583
|
+
|
584
|
+
# file: app/controllers/users_controller.rb
|
585
|
+
|
586
|
+
def show
|
587
|
+
@user = CrazyUser.find(15)
|
588
|
+
end
|
589
|
+
|
590
|
+
-# file: app/views/users/show.haml
|
591
|
+
|
592
|
+
%div[@user, :greeting]
|
593
|
+
%bar[290]/
|
594
|
+
Hello!
|
595
|
+
|
596
|
+
is compiled to:
|
597
|
+
|
598
|
+
<div class='greeting_crazy_user' id='greeting_crazy_user_15'>
|
599
|
+
<bar class='fixnum' id='fixnum_581' />
|
600
|
+
Hello!
|
601
|
+
</div>
|
602
|
+
|
603
|
+
If you require that the class be something other than the underscored object's
|
604
|
+
class, you can implement the `haml_object_ref` method on the object.
|
605
|
+
|
606
|
+
# file: app/models/crazy_user.rb
|
607
|
+
|
608
|
+
class CrazyUser < ActiveRecord::Base
|
609
|
+
def haml_object_ref
|
610
|
+
"a_crazy_user"
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
614
|
+
-# file: app/views/users/show.haml
|
615
|
+
|
616
|
+
%div[@user]
|
617
|
+
Hello!
|
618
|
+
|
619
|
+
is compiled to:
|
620
|
+
|
621
|
+
<div class='a_crazy_user' id='a_crazy_user_15'>
|
622
|
+
Hello!
|
623
|
+
</div>
|
624
|
+
|
625
|
+
The `:class` attribute may be used in conjunction with an object
|
626
|
+
reference. The compiled element will have the union of all classes.
|
627
|
+
|
628
|
+
- user = User.find(1)
|
629
|
+
%p[user]{:class => 'alpha bravo'}
|
630
|
+
<p id="user_1" class="alpha bravo user"></p>
|
631
|
+
|
632
|
+
## Doctype: `!!!`
|
633
|
+
|
634
|
+
When describing HTML documents with Haml, you can have a document type or XML
|
635
|
+
prolog generated automatically by including the characters `!!!`. For example:
|
636
|
+
|
637
|
+
!!! XML
|
638
|
+
!!!
|
639
|
+
%html
|
640
|
+
%head
|
641
|
+
%title Myspace
|
642
|
+
%body
|
643
|
+
%h1 I am the international space station
|
644
|
+
%p Sign my guestbook
|
645
|
+
|
646
|
+
is compiled to:
|
647
|
+
|
648
|
+
<?xml version='1.0' encoding='utf-8' ?>
|
649
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
650
|
+
<html>
|
651
|
+
<head>
|
652
|
+
<title>Myspace</title>
|
653
|
+
</head>
|
654
|
+
<body>
|
655
|
+
<h1>I am the international space station</h1>
|
656
|
+
<p>Sign my guestbook</p>
|
657
|
+
</body>
|
658
|
+
</html>
|
659
|
+
|
660
|
+
You can also specify the specific doctype after the `!!!` When the
|
661
|
+
{Haml::Options#format `:format`} is set to `:xhtml`. The following doctypes are
|
662
|
+
supported:
|
663
|
+
|
664
|
+
`!!!`
|
665
|
+
: XHTML 1.0 Transitional<br/>
|
666
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">`
|
667
|
+
|
668
|
+
`!!! Strict`
|
669
|
+
: XHTML 1.0 Strict<br/>
|
670
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">`
|
671
|
+
|
672
|
+
`!!! Frameset`
|
673
|
+
: XHTML 1.0 Frameset<br/>
|
674
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">`
|
675
|
+
|
676
|
+
`!!! 5`
|
677
|
+
: XHTML 5<br/>
|
678
|
+
`<!DOCTYPE html>`<br/>
|
679
|
+
|
680
|
+
`!!! 1.1`
|
681
|
+
: XHTML 1.1<br/>
|
682
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">`
|
683
|
+
|
684
|
+
`!!! Basic`
|
685
|
+
: XHTML Basic 1.1<br/>
|
686
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> `
|
687
|
+
|
688
|
+
`!!! Mobile`
|
689
|
+
: XHTML Mobile 1.2<br/>
|
690
|
+
`<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">`
|
691
|
+
|
692
|
+
`!!! RDFa`
|
693
|
+
: XHTML+RDFa 1.0<br/>
|
694
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">`
|
695
|
+
|
696
|
+
When the {Haml::Options#format `:format`} option is set to `:html4`, the following
|
697
|
+
doctypes are supported:
|
698
|
+
|
699
|
+
`!!!`
|
700
|
+
: HTML 4.01 Transitional<br/>
|
701
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">`
|
702
|
+
|
703
|
+
`!!! Strict`
|
704
|
+
: HTML 4.01 Strict<br/>
|
705
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">`
|
706
|
+
|
707
|
+
`!!! Frameset`
|
708
|
+
: HTML 4.01 Frameset<br/>
|
709
|
+
`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">`
|
710
|
+
|
711
|
+
When the {Haml::Options#format `:format`} option is set to `:html5`,
|
712
|
+
`!!!` is always `<!DOCTYPE html>`.
|
713
|
+
|
714
|
+
If you're not using the UTF-8 character set for your document, you can specify
|
715
|
+
which encoding should appear in the XML prolog in a similar way. For example:
|
716
|
+
|
717
|
+
!!! XML iso-8859-1
|
718
|
+
|
719
|
+
is compiled to:
|
720
|
+
|
721
|
+
<?xml version='1.0' encoding='iso-8859-1' ?>
|
722
|
+
|
723
|
+
If the mime_type of the template being rendered is `text/xml` then a format of
|
724
|
+
`:xhtml` will be used even if the global output format is set to `:html4` or
|
725
|
+
`:html5`.
|
726
|
+
|
727
|
+
## Comments
|
728
|
+
|
729
|
+
Haml supports two sorts of comments: those that show up in the HTML output and
|
730
|
+
those that don't.
|
731
|
+
|
732
|
+
### HTML Comments: `/`
|
733
|
+
|
734
|
+
The forward slash character, when placed at the beginning of a line, wraps all
|
735
|
+
text after it in an HTML comment. For example:
|
736
|
+
|
737
|
+
%peanutbutterjelly
|
738
|
+
/ This is the peanutbutterjelly element
|
739
|
+
I like sandwiches!
|
740
|
+
|
741
|
+
is compiled to:
|
742
|
+
|
743
|
+
<peanutbutterjelly>
|
744
|
+
<!-- This is the peanutbutterjelly element -->
|
745
|
+
I like sandwiches!
|
746
|
+
</peanutbutterjelly>
|
747
|
+
|
748
|
+
The forward slash can also wrap indented sections of code. For example:
|
749
|
+
|
750
|
+
/
|
751
|
+
%p This doesn't render...
|
752
|
+
%div
|
753
|
+
%h1 Because it's commented out!
|
754
|
+
|
755
|
+
is compiled to:
|
756
|
+
|
757
|
+
<!--
|
758
|
+
<p>This doesn't render...</p>
|
759
|
+
<div>
|
760
|
+
<h1>Because it's commented out!</h1>
|
761
|
+
</div>
|
762
|
+
-->
|
763
|
+
|
764
|
+
#### Conditional Comments: `/[]`
|
765
|
+
|
766
|
+
You can also use [Internet Explorer conditional
|
767
|
+
comments](http://www.quirksmode.org/css/condcom.html) by enclosing the condition
|
768
|
+
in square brackets after the `/`. For example:
|
769
|
+
|
770
|
+
/[if IE]
|
771
|
+
%a{ :href => 'http://www.mozilla.com/en-US/firefox/' }
|
772
|
+
%h1 Get Firefox
|
773
|
+
|
774
|
+
is compiled to:
|
775
|
+
|
776
|
+
<!--[if IE]>
|
777
|
+
<a href='http://www.mozilla.com/en-US/firefox/'>
|
778
|
+
<h1>Get Firefox</h1>
|
779
|
+
</a>
|
780
|
+
<![endif]-->
|
781
|
+
|
782
|
+
### Haml Comments: `-#`
|
783
|
+
|
784
|
+
The hyphen followed immediately by the pound sign signifies a silent comment.
|
785
|
+
Any text following this isn't rendered in the resulting document at all.
|
786
|
+
|
787
|
+
For example:
|
788
|
+
|
789
|
+
%p foo
|
790
|
+
-# This is a comment
|
791
|
+
%p bar
|
792
|
+
|
793
|
+
is compiled to:
|
794
|
+
|
795
|
+
<p>foo</p>
|
796
|
+
<p>bar</p>
|
797
|
+
|
798
|
+
You can also nest text beneath a silent comment. None of this text will be
|
799
|
+
rendered. For example:
|
800
|
+
|
801
|
+
%p foo
|
802
|
+
-#
|
803
|
+
This won't be displayed
|
804
|
+
Nor will this
|
805
|
+
Nor will this.
|
806
|
+
%p bar
|
807
|
+
|
808
|
+
is compiled to:
|
809
|
+
|
810
|
+
<p>foo</p>
|
811
|
+
<p>bar</p>
|
812
|
+
|
813
|
+
## Ruby Evaluation
|
814
|
+
|
815
|
+
### Inserting Ruby: `=`
|
816
|
+
|
817
|
+
The equals character is followed by Ruby code. This code is evaluated and the
|
818
|
+
output is inserted into the document. For example:
|
819
|
+
|
820
|
+
%p
|
821
|
+
= ['hi', 'there', 'reader!'].join " "
|
822
|
+
= "yo"
|
823
|
+
|
824
|
+
is compiled to:
|
825
|
+
|
826
|
+
<p>
|
827
|
+
hi there reader!
|
828
|
+
yo
|
829
|
+
</p>
|
830
|
+
|
831
|
+
If the {Haml::Options#escape_html `:escape_html`} option is set, `=` will sanitize
|
832
|
+
any HTML-sensitive characters generated by the script. For example:
|
833
|
+
|
834
|
+
= '<script>alert("I\'m evil!");</script>'
|
835
|
+
|
836
|
+
would be compiled to
|
837
|
+
|
838
|
+
<script>alert("I'm evil!");</script>
|
839
|
+
|
840
|
+
`=` can also be used at the end of a tag to insert Ruby code within that tag.
|
841
|
+
For example:
|
842
|
+
|
843
|
+
%p= "hello"
|
844
|
+
|
845
|
+
would be compiled to:
|
846
|
+
|
847
|
+
<p>hello</p>
|
848
|
+
|
849
|
+
A line of Ruby code can be stretched over multiple lines as long as each line
|
850
|
+
but the last ends with a comma. For example:
|
851
|
+
|
852
|
+
= link_to_remote "Add to cart",
|
853
|
+
:url => { :action => "add", :id => product.id },
|
854
|
+
:update => { :success => "cart", :failure => "error" }
|
855
|
+
|
856
|
+
Note that it's illegal to nest code within a tag that ends with `=`.
|
857
|
+
|
858
|
+
### Running Ruby: `-`
|
859
|
+
|
860
|
+
The hyphen character is also followed by Ruby code. This code is evaluated but
|
861
|
+
*not* inserted into the document.
|
862
|
+
|
863
|
+
**It is not recommended that you use this widely; almost all processing code and
|
864
|
+
logic should be restricted to Controllers, Helpers, or partials.**
|
865
|
+
|
866
|
+
For example:
|
867
|
+
|
868
|
+
- foo = "hello"
|
869
|
+
- foo << " there"
|
870
|
+
- foo << " you!"
|
871
|
+
%p= foo
|
872
|
+
|
873
|
+
is compiled to:
|
874
|
+
|
875
|
+
<p>
|
876
|
+
hello there you!
|
877
|
+
</p>
|
878
|
+
|
879
|
+
A line of Ruby code can be stretched over multiple lines as long as each line
|
880
|
+
but the last ends with a comma. For example:
|
881
|
+
|
882
|
+
- links = {:home => "/",
|
883
|
+
:docs => "/docs",
|
884
|
+
:about => "/about"}
|
885
|
+
|
886
|
+
#### Ruby Blocks
|
887
|
+
|
888
|
+
Ruby blocks, like XHTML tags, don't need to be explicitly closed in Haml.
|
889
|
+
Rather, they're automatically closed, based on indentation. A block begins
|
890
|
+
whenever the indentation is increased after a Ruby evaluation command. It ends
|
891
|
+
when the indentation decreases (as long as it's not an `else` clause or
|
892
|
+
something similar). For example:
|
893
|
+
|
894
|
+
- (42...47).each do |i|
|
895
|
+
%p= i
|
896
|
+
%p See, I can count!
|
897
|
+
|
898
|
+
is compiled to:
|
899
|
+
|
900
|
+
<p>42</p>
|
901
|
+
<p>43</p>
|
902
|
+
<p>44</p>
|
903
|
+
<p>45</p>
|
904
|
+
<p>46</p>
|
905
|
+
<p>See, I can count!</p>
|
906
|
+
|
907
|
+
Another example:
|
908
|
+
|
909
|
+
%p
|
910
|
+
- case 2
|
911
|
+
- when 1
|
912
|
+
= "1!"
|
913
|
+
- when 2
|
914
|
+
= "2?"
|
915
|
+
- when 3
|
916
|
+
= "3."
|
917
|
+
|
918
|
+
is compiled to:
|
919
|
+
|
920
|
+
<p>
|
921
|
+
2?
|
922
|
+
</p>
|
923
|
+
|
924
|
+
### Whitespace Preservation: `~` {#tilde}
|
925
|
+
|
926
|
+
`~` works just like `=`, except that it runs {Haml::Helpers#find\_and\_preserve}
|
927
|
+
on its input. For example,
|
928
|
+
|
929
|
+
~ "Foo\n<pre>Bar\nBaz</pre>"
|
930
|
+
|
931
|
+
is the same as:
|
932
|
+
|
933
|
+
= find_and_preserve("Foo\n<pre>Bar\nBaz</pre>")
|
934
|
+
|
935
|
+
and is compiled to:
|
936
|
+
|
937
|
+
Foo
|
938
|
+
<pre>Bar
Baz</pre>
|
939
|
+
|
940
|
+
See also [Whitespace Preservation](#whitespace_preservation).
|
941
|
+
|
942
|
+
### Ruby Interpolation: `#{}`
|
943
|
+
|
944
|
+
Ruby code can also be interpolated within plain text using `#{}`, similarly to
|
945
|
+
Ruby string interpolation. For example,
|
946
|
+
|
947
|
+
%p This is #{h quality} cake!
|
948
|
+
|
949
|
+
is the same as
|
950
|
+
|
951
|
+
%p= "This is #{h quality} cake!"
|
952
|
+
|
953
|
+
and might compile to:
|
954
|
+
|
955
|
+
<p>This is scrumptious cake!</p>
|
956
|
+
|
957
|
+
Backslashes can be used to escape `#{}` strings, but they don't act as escapes
|
958
|
+
anywhere else in the string. For example:
|
959
|
+
|
960
|
+
%p
|
961
|
+
Look at \\#{h word} lack of backslash: \#{foo}
|
962
|
+
And yon presence thereof: \{foo}
|
963
|
+
|
964
|
+
might compile to:
|
965
|
+
|
966
|
+
<p>
|
967
|
+
Look at \yon lack of backslash: #{foo}
|
968
|
+
And yon presence thereof: \{foo}
|
969
|
+
</p>
|
970
|
+
|
971
|
+
Interpolation can also be used within [filters](#filters). For example:
|
972
|
+
|
973
|
+
:javascript
|
974
|
+
$(document).ready(function() {
|
975
|
+
alert(#{@message.to_json});
|
976
|
+
});
|
977
|
+
|
978
|
+
might compile to:
|
979
|
+
|
980
|
+
<script type='text/javascript'>
|
981
|
+
//<![CDATA[
|
982
|
+
$(document).ready(function() {
|
983
|
+
alert("Hi there!");
|
984
|
+
});
|
985
|
+
//]]>
|
986
|
+
</script>
|
987
|
+
|
988
|
+
### Escaping HTML: `&=` {#escaping_html}
|
989
|
+
|
990
|
+
An ampersand followed by one or two equals characters evaluates Ruby code just
|
991
|
+
like the equals without the ampersand, but sanitizes any HTML-sensitive
|
992
|
+
characters in the result of the code. For example:
|
993
|
+
|
994
|
+
&= "I like cheese & crackers"
|
995
|
+
|
996
|
+
compiles to
|
997
|
+
|
998
|
+
I like cheese & crackers
|
999
|
+
|
1000
|
+
If the {Haml::Options#escape_html `:escape_html`} option is set, `&=` behaves
|
1001
|
+
identically to `=`.
|
1002
|
+
|
1003
|
+
`&` can also be used on its own so that `#{}` interpolation is escaped. For
|
1004
|
+
example,
|
1005
|
+
|
1006
|
+
& I like #{"cheese & crackers"}
|
1007
|
+
|
1008
|
+
compiles to:
|
1009
|
+
|
1010
|
+
I like cheese & crackers
|
1011
|
+
|
1012
|
+
### Unescaping HTML: `!=` {#unescaping_html}
|
1013
|
+
|
1014
|
+
An exclamation mark followed by one or two equals characters evaluates Ruby code
|
1015
|
+
just like the equals would, but never sanitizes the HTML.
|
1016
|
+
|
1017
|
+
By default, the single equals doesn't sanitize HTML either. However, if the
|
1018
|
+
{Haml::Options#escape_html `:escape_html`} option is set, `=` will sanitize the
|
1019
|
+
HTML, but `!=` still won't. For example, if `:escape_html` is set:
|
1020
|
+
|
1021
|
+
= "I feel <strong>!"
|
1022
|
+
!= "I feel <strong>!"
|
1023
|
+
|
1024
|
+
compiles to
|
1025
|
+
|
1026
|
+
I feel <strong>!
|
1027
|
+
I feel <strong>!
|
1028
|
+
|
1029
|
+
`!` can also be used on its own so that `#{}` interpolation is unescaped.
|
1030
|
+
For example,
|
1031
|
+
|
1032
|
+
! I feel #{"<strong>"}!
|
1033
|
+
|
1034
|
+
compiles to
|
1035
|
+
|
1036
|
+
I feel <strong>!
|
1037
|
+
|
1038
|
+
## Filters {#filters}
|
1039
|
+
|
1040
|
+
The colon character designates a filter. This allows you to pass an indented
|
1041
|
+
block of text as input to another filtering program and add the result to the
|
1042
|
+
output of Haml. The syntax is simply a colon followed by the name of the filter.
|
1043
|
+
For example:
|
1044
|
+
|
1045
|
+
%p
|
1046
|
+
:markdown
|
1047
|
+
# Greetings
|
1048
|
+
|
1049
|
+
Hello, *World*
|
1050
|
+
|
1051
|
+
is compiled to:
|
1052
|
+
|
1053
|
+
<p>
|
1054
|
+
<h1>Greetings</h1>
|
1055
|
+
|
1056
|
+
<p>Hello, <em>World</em></p>
|
1057
|
+
</p>
|
1058
|
+
|
1059
|
+
Filters can have Ruby code interpolated with `#{}`. For example:
|
1060
|
+
|
1061
|
+
- flavor = "raspberry"
|
1062
|
+
#content
|
1063
|
+
:textile
|
1064
|
+
I *really* prefer _#{flavor}_ jam.
|
1065
|
+
|
1066
|
+
is compiled to
|
1067
|
+
|
1068
|
+
<div id='content'>
|
1069
|
+
<p>I <strong>really</strong> prefer <em>raspberry</em> jam.</p>
|
1070
|
+
</div>
|
1071
|
+
|
1072
|
+
Currently, filters ignore the {Haml::Options#escape_html `:escape_html`} option.
|
1073
|
+
This means that `#{}` interpolation within filters is never HTML-escaped.
|
1074
|
+
|
1075
|
+
The functionality of some filters such as Markdown can be provided by many
|
1076
|
+
different libraries. Usually you don't have to worry about this - you can just
|
1077
|
+
load the gem of your choice and Haml will automatically use it.
|
1078
|
+
|
1079
|
+
However in some cases you may want to make Haml explicitly use a specific gem to
|
1080
|
+
be used by a filter. In these cases you can do this via Tilt, the library Haml
|
1081
|
+
uses to implement many of its filters:
|
1082
|
+
|
1083
|
+
Tilt.prefer Tilt::RedCarpetTemplate
|
1084
|
+
|
1085
|
+
See the [Tilt documentation](https://github.com/rtomayko/tilt#fallback-mode) for
|
1086
|
+
more info.
|
1087
|
+
|
1088
|
+
Haml comes with the following filters defined:
|
1089
|
+
|
1090
|
+
{#cdata-filter}
|
1091
|
+
### `:cdata`
|
1092
|
+
Surrounds the filtered text with CDATA tags.
|
1093
|
+
|
1094
|
+
{#coffee-filter}
|
1095
|
+
### `:coffee`
|
1096
|
+
Compiles the filtered text to Javascript using Cofeescript. You can also
|
1097
|
+
reference this filter as `:coffeescript`. This filter is implemented using
|
1098
|
+
Tilt.
|
1099
|
+
|
1100
|
+
{#css-filter}
|
1101
|
+
### `:css`
|
1102
|
+
Surrounds the filtered text with `<style>` and (optionally) CDATA tags. Useful
|
1103
|
+
for including inline CSS. Use the {Haml::Options#cdata `:cdata` option} to
|
1104
|
+
control when CDATA tags are added.
|
1105
|
+
|
1106
|
+
{#erb-filter}
|
1107
|
+
### `:erb`
|
1108
|
+
Parses the filtered text with ERb, like an RHTML template. Not available if the
|
1109
|
+
{Haml::Options#suppress_eval `:suppress_eval`} option is set to true. Embedded
|
1110
|
+
Ruby code is evaluated in the same context as the Haml template. This filter is
|
1111
|
+
implemented using Tilt.
|
1112
|
+
|
1113
|
+
{#escaped-filter}
|
1114
|
+
### `:escaped`
|
1115
|
+
Works the same as plain, but HTML-escapes the text
|
1116
|
+
before placing it in the document.
|
1117
|
+
|
1118
|
+
{#javascript-filter}
|
1119
|
+
### `:javascript`
|
1120
|
+
Surrounds the filtered text with `<script>` and (optionally) CDATA tags.
|
1121
|
+
Useful for including inline Javascript. Use the {Haml::Options#cdata `:cdata`
|
1122
|
+
option} to control when CDATA tags are added.
|
1123
|
+
|
1124
|
+
{#less-filter}
|
1125
|
+
### `:less`
|
1126
|
+
Parses the filtered text with [Less](http://lesscss.org/) to produce CSS output.
|
1127
|
+
This filter is implemented using Tilt.
|
1128
|
+
|
1129
|
+
{#markdown-filter}
|
1130
|
+
### `:markdown`
|
1131
|
+
Parses the filtered text with
|
1132
|
+
[Markdown](http://daringfireball.net/projects/markdown). This filter is
|
1133
|
+
implemented using Tilt.
|
1134
|
+
|
1135
|
+
{#maruku-filter}
|
1136
|
+
### `:maruku`
|
1137
|
+
Parses the filtered text with [Maruku](https://github.com/nex3/maruku), which
|
1138
|
+
has some non-standard extensions to Markdown.
|
1139
|
+
|
1140
|
+
As of Haml 4.0, this filter is defined in [Haml
|
1141
|
+
contrib](https://github.com/haml/haml-contrib) but is loaded automatically for
|
1142
|
+
historical reasons. In future versions of Haml it will likely not be loaded by
|
1143
|
+
default. This filter is implemented using Tilt.
|
1144
|
+
|
1145
|
+
{#plain-filter}
|
1146
|
+
### `:plain`
|
1147
|
+
Does not parse the filtered text. This is useful for large blocks of text
|
1148
|
+
without HTML tags, when you don't want lines starting with `.` or `-` to be
|
1149
|
+
parsed.
|
1150
|
+
|
1151
|
+
{#preserve-filter}
|
1152
|
+
### `:preserve`
|
1153
|
+
Inserts the filtered text into the template with whitespace preserved.
|
1154
|
+
`preserve`d blocks of text aren't indented, and newlines are replaced with the
|
1155
|
+
HTML escape code for newlines, to preserve nice-looking output. See also
|
1156
|
+
[Whitespace Preservation](#whitespace_preservation).
|
1157
|
+
|
1158
|
+
{#ruby-filter}
|
1159
|
+
### `:ruby`
|
1160
|
+
Parses the filtered text with the normal Ruby interpreter. Creates an `IO`
|
1161
|
+
object named `haml_io`, anything written to it is output into the Haml document.
|
1162
|
+
Not available if the {Haml::Options#suppress_eval `:suppress_eval`} option is
|
1163
|
+
set to true. The Ruby code is evaluated in the same context as the Haml
|
1164
|
+
template.
|
1165
|
+
|
1166
|
+
{#sass-filter}
|
1167
|
+
### `:sass`
|
1168
|
+
Parses the filtered text with [Sass](http://sass-lang.com/) to produce CSS
|
1169
|
+
output. This filter is implemented using Tilt.
|
1170
|
+
|
1171
|
+
{#scss-filter}
|
1172
|
+
### `:scss`
|
1173
|
+
Parses the filtered text with Sass like the `:sass` filter, but uses the newer
|
1174
|
+
SCSS syntax to produce CSS output. This filter is implemented using Tilt.
|
1175
|
+
|
1176
|
+
{#textile-filter}
|
1177
|
+
### `:textile`
|
1178
|
+
Parses the filtered text with [Textile](http://www.textism.com/tools/textile).
|
1179
|
+
Only works if [RedCloth](http://redcloth.org) is installed.
|
1180
|
+
|
1181
|
+
As of Haml 4.0, this filter is defined in [Haml
|
1182
|
+
contrib](https://github.com/haml/haml-contrib) but is loaded automatically for
|
1183
|
+
historical reasons. In future versions of Haml it will likely not be loaded by
|
1184
|
+
default. This filter is implemented using Tilt.
|
1185
|
+
|
1186
|
+
### Custom Filters
|
1187
|
+
|
1188
|
+
You can also define your own filters. See {Haml::Filters} for details.
|
1189
|
+
|
1190
|
+
## Helper Methods {#helper-methods}
|
1191
|
+
|
1192
|
+
Sometimes you need to manipulate whitespace in a more precise fashion than what
|
1193
|
+
the whitespace removal methods allow. There are a few helper methods that are
|
1194
|
+
useful when dealing with inline content. All these methods take a Haml block to
|
1195
|
+
modify.
|
1196
|
+
|
1197
|
+
{#surround}
|
1198
|
+
### surround
|
1199
|
+
Surrounds a Haml block with text. Expects 1 or 2 string arguments used to
|
1200
|
+
surround the Haml block. If a second argument is not provided, the first
|
1201
|
+
argument is used as the second.
|
1202
|
+
|
1203
|
+
= surround "(", ")" do
|
1204
|
+
= link_to "learn more", "#"
|
1205
|
+
|
1206
|
+
{#precede}
|
1207
|
+
### precede
|
1208
|
+
Prepends a Haml block with text. Expects 1 argument.
|
1209
|
+
|
1210
|
+
= precede "*" do
|
1211
|
+
%span Required
|
1212
|
+
|
1213
|
+
{#succeed}
|
1214
|
+
### succeed
|
1215
|
+
Appends a Haml block with text. Expects 1 argument.
|
1216
|
+
|
1217
|
+
Begin by
|
1218
|
+
= succeed "," do
|
1219
|
+
= link_to "filling out your profile", "#"
|
1220
|
+
= succeed "," do
|
1221
|
+
= link_to "adding a bio", "#"
|
1222
|
+
and
|
1223
|
+
= succeed "." do
|
1224
|
+
= link_to "inviting friends", "#"
|
1225
|
+
|
1226
|
+
## Multiline: `|` {#multiline}
|
1227
|
+
|
1228
|
+
The pipe character designates a multiline string.
|
1229
|
+
It's placed at the end of a line (after some whitespace)
|
1230
|
+
and means that all following lines that end with `|`
|
1231
|
+
will be evaluated as though they were on the same line.
|
1232
|
+
**Note that even the last line in the multiline block
|
1233
|
+
should end with `|`.**
|
1234
|
+
For example:
|
1235
|
+
|
1236
|
+
%whoo
|
1237
|
+
%hoo= h( |
|
1238
|
+
"I think this might get " + |
|
1239
|
+
"pretty long so I should " + |
|
1240
|
+
"probably make it " + |
|
1241
|
+
"multiline so it doesn't " + |
|
1242
|
+
"look awful.") |
|
1243
|
+
%p This is short.
|
1244
|
+
|
1245
|
+
is compiled to:
|
1246
|
+
|
1247
|
+
<whoo>
|
1248
|
+
<hoo>I think this might get pretty long so I should probably make it multiline so it doesn't look awful.</hoo>
|
1249
|
+
<p>This is short</p>
|
1250
|
+
</whoo>
|
1251
|
+
|
1252
|
+
Using multiline declarations in Haml is intentionally awkward.
|
1253
|
+
This is designed to discourage people from putting lots and lots of Ruby code
|
1254
|
+
in their Haml templates.
|
1255
|
+
If you find yourself using multiline declarations, stop and think:
|
1256
|
+
could I do this better with a helper?
|
1257
|
+
|
1258
|
+
Note that there are a few cases where it's useful to allow
|
1259
|
+
something to flow over onto multiple lines in a non-awkward manner.
|
1260
|
+
One of these is HTML attributes.
|
1261
|
+
Some elements just have lots of attributes,
|
1262
|
+
so you can wrap attributes without using `|` (see [Attributes](#attributes)).
|
1263
|
+
|
1264
|
+
In addition, sometimes you need to call Ruby methods or declare data structures
|
1265
|
+
that just need a lot of template information.
|
1266
|
+
So data structures and functions that require lots of arguments
|
1267
|
+
can be wrapped over multiple lines,
|
1268
|
+
as long as each line but the last ends in a comma
|
1269
|
+
(see [Inserting Ruby](#inserting_ruby_)).
|
1270
|
+
|
1271
|
+
## Whitespace Preservation
|
1272
|
+
|
1273
|
+
Sometimes you don't want Haml to indent all your text.
|
1274
|
+
For example, tags like `pre` and `textarea` are whitespace-sensitive;
|
1275
|
+
indenting the text makes them render wrong.
|
1276
|
+
|
1277
|
+
Haml deals with this by "preserving" newlines before they're put into the
|
1278
|
+
document -- converting them to the HTML whitespace escape code, `
`. Then
|
1279
|
+
Haml won't try to re-format the indentation.
|
1280
|
+
|
1281
|
+
Literal `textarea` and `pre` tags automatically preserve content given through
|
1282
|
+
`=`. Dynamically-generated `textarea`s and `pre`s can't be preserved
|
1283
|
+
automatically, and so should be passed through
|
1284
|
+
{Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde), which has the
|
1285
|
+
same effect.
|
1286
|
+
|
1287
|
+
Blocks of literal text can be preserved using the [`:preserve` filter](#preserve-filter).
|
1288
|
+
|
1289
|
+
## Helpers
|
1290
|
+
|
1291
|
+
Haml offers a bunch of helpers that are useful for doing stuff like preserving
|
1292
|
+
whitespace, creating nicely indented output for user-defined helpers, and other
|
1293
|
+
useful things. The helpers are all documented in the {Haml::Helpers} and
|
1294
|
+
{Haml::Helpers::ActionViewExtensions} modules.
|