Comments (4)
Hm ...
The PR probably works properly, but I do not feel that need.
In labmda, it would be easier to use simplified data.
So why does it support assoc list
?
The project I was working on when I created bbmustache
was not able to use maps.
Then time has passed.
I will stop to support assoc list
when incrementing major version.
Please fork and remodel bbmustache
to use it easy for yourself.
Thanks.
from bbmustache.
Well my idea was that using a closure as data
in theory allows to use any key-value storage without modifying bbmustache.erl... It will allow storing data in dict, ets, map and what not. So it's just "the" generic solution. In theory it would allow to remove lots of map-related ifdef
s from the code to make it nicer.
That's why I think it's worth integrating into the upstream. But anyways, it's your decision to make.
from bbmustache.
You could also do things like have key.base64
in case you wanted (or base64(key)
) in the template, to turn something into base64 and parse that out in your data fun before doing the lookup.
I'm looking at doing some more sophisticated templating with bbmustache and I would like to have this option as well.
from bbmustache.
from bbmustache.
Related Issues (20)
- Allow disabling of html escaping HOT 5
- Tag lookup doesn't descend the context stack HOT 3
- Escaping overlay vars (mustache variables) inside template files HOT 2
- Bug? intra-tag whitespace not rendering HOT 1
- Exception on missing key HOT 5
- Crash under certain conditions HOT 1
- Fix documentation link on Hexpm HOT 3
- Wrong filename for missing include errors HOT 5
- Incompatible typespecs HOT 4
- Rendering a template always accesses file on disk HOT 2
- Adding custom serialization functions to bbmustache. HOT 5
- Allow array access for lists HOT 6
- Wrong parsing when closing tag is on separate line HOT 2
- Feature request: Allow getting partials from other sources HOT 3
- Run bbmustache from command line HOT 4
- Problems loading partials on Elixir project HOT 2
- Unicode support in value fetching. HOT 1
- Variable test not matching spec HOT 4
- Anyway to skip over unclosed tags? HOT 1
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 bbmustache.