Comments (2)
Hello
My understanding is that your 'collection' array is at the same level as your 'global' object.
Something along the lines of:
When iterating over 'collection' using {{#collection}}, you navigate one context down (into 'collection').
Contrary to vanilla mustache, with handlebars, you cannot implicitly access data from parent context. You need to explicitly refer to the parent context using '../' to access its data.
See http://handlebarsjs.com/#paths for details.
In your example, simply access global using {{../global.img-w}} instead of {{global.img-w}}
Hope this helps.
from handlebars-objc.
That's what I was missing! Perfect. Thanks, closing.
from handlebars-objc.
Related Issues (11)
- Erroneous documentation on valid context objects? HOT 5
- Bison/yacc error when using Cocoapods 0.35 HOT 3
- Difficulty creating helper
- ARC restriction errors even with -fno-objc-arc HOT 30
- Build fails with Xcode 9.3 HOT 3
- Parsing without escaping embedded text... is it possible? HOT 4
- Difficulty writing a specific type of helper HOT 3
- Lex error when including `inhibit_all_warnings!` in Podfile HOT 3
- Will handlebars-objc loop through an NSSet? HOT 1
- Memory leaks HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handlebars-objc.