aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/compiled_templates_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* split DELEGATION_RESERVED_METHOD_NAMES in halfToshimaru2016-12-091-4/+10
|
* Enable `block` variable in viewToshimaru2016-12-091-0/+4
| | | | Remove `block` keyword from reserved method names
* Change render to support any hash keys in localsPeter Schilling2016-10-021-0/+19
| | | | | | | | | | | | | | | | | | | this lets you pass ruby keywords to templates: <%= render 'example', class: "cool" %> <%= render 'example', "spaces are" => "a-ok" %> <%= render 'example', Foo: "bar" %> Previously you'd see confusing syntax errors like this: SyntaxError (.../_example.html.erb:1: syntax error, unexpected '=' Now you can reference invalid identifiers through local_assigns. If you try to use an invalid keyword (e.g. class) in your template, you get a syntax error on the line where you use it.
* modernizes hash syntax in actionviewXavier Noria2016-08-061-9/+9
|
* applies new string literal convention in actionview/testXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* handle <%== nil %> casesAaron Patterson2014-09-141-0/+4
| | | | | This is much less common than string literal appends, so add a special case method for it. Maybe fixes bug reported by @jeremy on 97ef636191933f1d4abc92fc10871e6d1195285c
* Move cleanup into teardown, delete obsolete code.Zuhao Wan2014-06-141-8/+1
|
* Remove unneeded filesPiotr Sarnacki2013-06-201-1/+0
|
* Move template tests from actionpack to actionviewPiotr Sarnacki2013-06-201-0/+63