Giter VIP home page Giter VIP logo

Comments (12)

LucioFranco avatar LucioFranco commented on June 6, 2024 1

I will take a crack at include today! Thanks for the info @johannhof

from liquid-rust.

tcsc avatar tcsc commented on June 6, 2024

Any suggestions of which would be the most useful to attack? I've got a few ideas on how to approach cycle, and figuring out a sane way to do break or continue would be ... interesting.

PS: I also have an implementation of capture that will be ready for review once some of my other commits get (hopefully) merged.

from liquid-rust.

tak1n avatar tak1n commented on June 6, 2024

@tcsc the most useful one is the one which was requested on cobalt.rs: cobalt-org/cobalt.rs#61.
But we should implement all of them in future.

Maybe you can work together with @LucioFranco who is also interested in implementing the include tag.

Regarding to your pull request, I still have to get comfortable with liquid-rust therefore @johannhof is in charge for merging and reviewing pull requests for liquid-rust. :)

from liquid-rust.

tcsc avatar tcsc commented on June 6, 2024

No worries. A naΓ―ve implementation of include should be pretty straightforward.

It does present the opportunity for a pretty large security hole, though. I mean what if someone were to {% include /root/.ssh/id_rsa %}.... Oops. Might be worth seeing if shopify does anything special. Will have a peek.

from liquid-rust.

tcsc avatar tcsc commented on June 6, 2024

...and I didn't mean the bit about the pullreq to be naggy. It was just a heads up, so someone didn't write the same code twice. Apologies if it came off whiney. :-)

from liquid-rust.

tak1n avatar tak1n commented on June 6, 2024

@tcsc yep we should see how liquid from shopify is handling that cases.

Also it didn't came off whiney or naggy at all, just wanted to give you some feedback as of why I'm not dealing with your PR's.

We appreciate you're contributions thanks πŸ˜„

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

Apologies if it came off whiney

Didn't seem that way at all. :)

Regarding the include tag: since it's part of the "standard" we should include it, but I'd also love to write a plugin that enables things like mixins or importing JSON/Yaml data into the context.

Regarding Cobalt, I would also like to move away from Cobalt handling the include/inheritance stuff (it's pretty ugly right now anyway) and just delegate that to liquid inside Cobalt.

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

@tcsc: considering @LucioFranco is interested in trying include, I think break, continue or cycle sound like great choices for you! You're probably more familiar with the loop code than me right now. πŸ˜…. And it does sounds really interesting.

Thanks again :)

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

unless sounds like a good first bug to me, the major difficulty should be how to avoid code duplication with if

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

Done πŸŽ‰

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

Thanks so much @tcsc for implementing all these tags. The code is looking great and I hope you had fun implementing it!

from liquid-rust.

johannhof avatar johannhof commented on June 6, 2024

Also thank you to @LucioFranco for include of course :)

from liquid-rust.

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.