Comments (12)
I will take a crack at include
today! Thanks for the info @johannhof
from liquid-rust.
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.
@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.
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.
...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.
@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.
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.
@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.
unless
sounds like a good first bug to me, the major difficulty should be how to avoid code duplication with if
from liquid-rust.
Done π
from liquid-rust.
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.
Also thank you to @LucioFranco for include
of course :)
from liquid-rust.
Related Issues (20)
- Allow accessing renderer state/runtime before rendering HOT 6
- with_time unimplemented HOT 3
- Change `master` branch to `main` HOT 3
- could not compile kstring HOT 1
- Render Tag HOT 3
- EmptyDrop and Object indexing HOT 7
- Make struct InnerError public HOT 1
- Open to the idea of supporting less strict parsing/rendering as an option? HOT 3
- Can't render dates with millisecond precision HOT 1
- No way to return a reference for the values method of trait ObjectView
- Dependency Dashboard
- Question: supporting object literals with unknown keys on custom filters HOT 8
- Thoughts on implementing `From<serde_json::Value> for liquid_core::Value`? HOT 2
- How do you use `{% include x.liquid %}`? HOT 5
- Liquid Tag and Echo Tag
- How would you go about implementing a Drop HOT 3
- Add support for u64 numbers?
- Inline comments are not supported HOT 1
- Hash access to globals produces parse error
- New release? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liquid-rust.