GithubHelp home page GithubHelp logo

Comments (4)

jasmith-hs avatar jasmith-hs commented on June 24, 2024

This filter is one that is only supported in HubL, which is an extension of Jinjava.

from jinjava.

al-jeyapal avatar al-jeyapal commented on June 24, 2024

Thanks for clarifying. Happy for this to be closed out then, unless you guys are open to a PR bringing it into Jinjava?

from jinjava.

jasmith-hs avatar jasmith-hs commented on June 24, 2024

Yeah, no problem. It's not something that's on our radar as we have the HubL implementation that relies on much of our internal code and it isn't something within jinja.

from jinjava.

al-jeyapal avatar al-jeyapal commented on June 24, 2024

No worries, thanks @jasmith-hs.
Closing out.

For anyone else's benefit, we ended up doing the following which works fine for our use case of a simple format for currency:

{% set price = 100 %}
{{ "%,.2f"|format(price) }}

from jinjava.

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.