Comments (3)
Dear Andrew,
Responding from a hiking holiday with low internet access: in the latest
version on github it is possible to switch from "." to "$" as separation
symbol. The "." is the default so whisker conforms to the mustache standard.
Best regards,
Edwin
Op 16 jul. 2014 16:32 schreef "Andrew Hannigan" [email protected]:
Whisker seems to fail when there is a period in the name of the variable.
Considering that R variables quite typically have periods in the name, this
is very problematic.whisker.render("{{user.name}}", list(user.name=342))
[1] ""
whisker.render("{{username}}", list(username=342))
[1] "342"If there is a way around this please let me know. Also, if this is an
intentional design decision, it would be good to hear the reason for doing
so.—
Reply to this email directly or view it on GitHub
#18.
from whisker.
Hi Edwin - thanks for the update, I'll check that out. Enjoy the views!
from whisker.
I feel like it makes sense to use $
by default for the separation symbol. .
is all ubiquitous in R object names. For example, make.names
uses "." as the replacement when it sees a symbol it doesn't like:
make.names("var$name")
#> [1] "var.name"
from whisker.
Related Issues (20)
- More examples HOT 4
- Option to check parameters exist HOT 9
- Include in whisker.render documentation of triple mustache usage ({{{...}}}) HOT 1
- Inconsistent newlines when section value is in a list
- Problem with {{, even when changing delimiters HOT 2
- Template vector, first element empty string does not work HOT 4
- whisker does not support #sections with non empty lists HOT 1
- Publish 0.3-3 to CRAN HOT 1
- are there plans for continuing the development of whisker? HOT 1
- Add me to this repo? HOT 1
- impossible to use named sections when key is unknown
- It's not clear how to use whisker to iteratively generate text HOT 2
- Lambdas HOT 1
- Feature request: function to return data frame of keys in template
- Variables that start with period are replaced with empty string
- R package with whisker as dependency fails CRAN checks on r-devel-windows HOT 2
- Is there a way to get the parent variable in a nested loop? HOT 2
- Feature request: detect non-empty lists
- mustache.github.com -> mustache.github.io 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 whisker.