1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/fixtures/partials-app/source
Tom Sabin fb80ff93e3 Use EnhancedHash for partial locals (#2169)
* Add failing scenario with examples of partial locals usage

```cucumber
Scenario: Partials can be passed locals                     # features/partials.feature:37
  Given the Server is running at "partials-app"             # lib/middleman-core/step_definitions/server_steps.rb:65
  When I go to "/locals.html"                               # lib/middleman-core/step_definitions/server_steps.rb:74
  Then I should see "Local vars are 'foo', 'bar' and 'baz'" # lib/middleman-core/step_definitions/server_steps.rb:90
    expected "Local vars are '', '' and 'baz'\n\n" to include "Local vars are 'foo', 'bar' and 'baz'"
    Diff:
    @@ -1,2 +1,2 @@
    -Local vars are 'foo', 'bar' and 'baz'
    +Local vars are '', '' and 'baz'
     (RSpec::Expectations::ExpectationNotMetError)
    ./lib/middleman-core/step_definitions/server_steps.rb:91:in `/^I should see "([^\"]*)"$/'
    features/partials.feature:40:in `Then I should see "Local vars are 'foo', 'bar' and 'baz'"'
```

* Use EnhancedHash when initializing hash in partial helper

To allow keys to be fetched either from symbols or strings, as before
v4.1.0.
2018-04-09 16:39:02 -07:00
..
images work with static partials. Closes #1206 2014-07-18 10:54:48 -07:00
shared Remove partials_dir functionality 2014-07-07 23:48:49 -07:00
sub Remove partials_dir functionality 2014-07-07 23:48:49 -07:00
_block.erb fix partials used with blocks 2016-02-03 16:56:12 -05:00
_code_snippet.html Attempt to allow i18n to override partial lookup. #1333 2014-07-24 11:11:27 -07:00
_locals.erb Use EnhancedHash for partial locals (#2169) 2018-04-09 16:39:02 -07:00
_main.erb merge more into core, use gem availability to autoload 2013-05-09 14:41:26 -07:00
_main.str merge more into core, use gem availability to autoload 2013-05-09 14:41:26 -07:00
block.html.erb fix partials used with blocks 2016-02-03 16:56:12 -05:00
index.html.erb merge more into core, use gem availability to autoload 2013-05-09 14:41:26 -07:00
index_missing.html.erb Ensure that misspelled or missing partials generate an error 2016-03-03 11:23:17 -05:00
locals.html.erb Use EnhancedHash for partial locals (#2169) 2018-04-09 16:39:02 -07:00
second.html.str merge more into core, use gem availability to autoload 2013-05-09 14:41:26 -07:00
static_underscore.html.erb Attempt to allow i18n to override partial lookup. #1333 2014-07-24 11:11:27 -07:00
svg.html.erb work with static partials. Closes #1206 2014-07-18 10:54:48 -07:00
using_snippet.html.erb merge more into core, use gem availability to autoload 2013-05-09 14:41:26 -07:00