Comments (1)
Tim,
Thanks for the feedback. We don't really work that way with nested objects. When bar()
is called, this
is set to the current template context. We don't change the context based on paths, so in your example bar()
would be called with this
set to view
.
No offense taken. It's certainly not ready for everyone, but I am using it in a few apps and know of others with it running great in production.
Best wishes,
Alan
from handlebars.js.
Related Issues (20)
- Context within partials with arguments is acting weird HOT 1
- code generate
- When do you plan to release the new release HOT 2
- Support for eval-less template execution HOT 4
- Implement map helper function
- Handlebar table template creation change
- Node 18 Whitespace + Self-closing Tags HOT 3
- Add a helper to check whether a partial is defined
- Urgent: Potential Security Vulnerability Identified in Recent Package HOT 1
- Removal of dependency on wordwrap library HOT 2
- Trying to get in touch regarding a security issue HOT 1
- Is it possible to disable control flow statements?
- result of template({}) is cached
- Rendering precompiled templates on the server, runtime export HOT 1
- Link Issue HOT 1
- Partials are too slow
- Add automated fuzzing HOT 2
- Use type `Record<string, any>` for `HelperOptions.hash` HOT 1
- Why on earth would you write something without as as basic a thing as a conditional like if/then/else??? HOT 1
- how to insert `{{xxx}}}`
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.js.