Git Product home page Git Product logo

Comments (3)

edwindj avatar edwindj commented on June 20, 2024

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.

AndrewHannigan avatar AndrewHannigan commented on June 20, 2024

Hi Edwin - thanks for the update, I'll check that out. Enjoy the views!

from whisker.

kendonB avatar kendonB commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.