Coder Social home page Coder Social logo

Comments (4)

wrapperup avatar wrapperup commented on June 15, 2024

So far the changes are great. I like that State is exposed, that opens up quite a few possibilities.

Only nitpick I have is that it would be nice to keep the render_block methods on the template itself, which would do the same thing as eval_to_state()?.render_block(). Though I do see that giving them the old API would probably lead them to unnecessarily evaluate the state again if called multiple times, so I think this is perfectly fine.

from minijinja.

mitsuhiko avatar mitsuhiko commented on June 15, 2024

Yeah I wasn't sure about this myself. I think the chained use is not that bad and it makes it more efficient if you need to render more than one block at the time. In general MiniJinja has a shocking number of methods on all these different structs so I was quite happy getting rid of one :P

from minijinja.

nokome avatar nokome commented on June 15, 2024

Thanks for this. Excited to be close to a 1.0.

FWIW, I have an app which makes extensive use of minijinja including lots of dynamic objects. I found the upgrade very straightforward, only requiring the change to the new loader API.

from minijinja.

wolfv avatar wolfv commented on June 15, 2024

We updated minijinja in rattler-build and didn't have to change anything, so that was pretty painfree. Thanks!

from minijinja.

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.