Giter Site home page Giter Site logo

Comments (9)

jeremyasapp avatar jeremyasapp commented on July 18, 2024

The big question for me here is: do we need to add any code to Flambé? Seems like we can just provide a small tutorial that explains how you can use Jinja to do this

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

I like the idea of templating, but I don't really think this requires additional code, which is kind of cool :)

from flambe.

 avatar commented on July 18, 2024

Why not include the function I wrote above?

All of the code is super boilerplate. Plus, you can control how the config is written back to disk (removing spaces, comments, etc.).

For me, the question is: does this help people to get started with/fall more in love with flambé, and at what cost?

The answer is: yes, and at a very small one of a single helper.

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

Whether we add this snippet to the code or the docs what does it change?

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

They will still need to run a script on their template

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

Just to clarify I do want to keep your snippet! I just think it's so small it can just go in a tutorial directly. Do you think there is a strong reason to put it in the repo? If so, we can PR it in flambe.utils :)

from flambe.

nmatthews-asapp avatar nmatthews-asapp commented on July 18, 2024

I think it would be fine to add to utils - but there is one cost: we add jinja as a dependency

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

@nmatthews-asapp it's already a flask dependency, which is a dependency of ours (at least until we make the website a different repo or something)

from flambe.

jeremyasapp avatar jeremyasapp commented on July 18, 2024

@williamabrwolf want to make a PR into flambe.utils?

from flambe.

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.