Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoupling Markdown and Twig #235

Closed
SimoneS93 opened this issue Jun 17, 2015 · 5 comments
Closed

Decoupling Markdown and Twig #235

SimoneS93 opened this issue Jun 17, 2015 · 5 comments

Comments

@SimoneS93
Copy link

Have uou ever thought about decoupling Markdown and Twig from the core, providing them as plugin? This way one could use other template engines and html formatting languages. And why dont you use a proper YAML parser?

@theshka
Copy link
Collaborator

theshka commented Jun 21, 2015

The project has changed quite a bit since #116 / I started collaborating, would you be interested in implementing any of these suggestions and submitting a new PR?

@SimoneS93
Copy link
Author

Sure, I'll do it over the weekend.

@SimoneS93
Copy link
Author

I did it, but I don't know if it is worth. In my opinion Pico needs a complete rewrite.

@marcus-at-localhost
Copy link

Not sure if I am right here, but I would like to second the request:
I wrote a small plugin to render content files with Jade template syntax (using this: https://github.com/Talesoft/tale-jade)
Unfortunately Jade's is choking on the YAML block and I can't use the raw content and jades internal caching mechanism.
My Plugin is a little bit of a crutch but for a small site, it works.
So I would love to see an easier way to choose the rendering engine for content files.

It could be determined by the contents file extension

blog-2016-03-14.md => Parsedown
plain.html => No processing
complex. jade => jade renderer
blog-2016-04-05.textile => textile renderer
content.wiki => wikimarkup 

This would make it easy to choose the right markup for whatever the content is.

@PhrozenByte
Copy link
Collaborator

As far as I understand this issue right, it is about replacing Markdown, YAML and/or Twig with something different. There are no plannings to completely replace these core parts of Pico, neither in the near, nor the distant future (i.e. Pico 3.0 and later, #317).

However, Pico already allows one to achieve most things people are trying to do (like using pure Twig instead of Markdown to represent contents; see #110 (comment)), but we definitely won't support things which are against Pico's basic idea (Markdown + YAML + Twig + 🎉 = Pico - in the simplest, but still most powerful way possible). Adding more and more abstraction contradicts Pico's demand for simplicity (what also applies to the source code).

Please refer to #110 (comment) for a more detailed answer why this isn't going to happen, and some explanations on how to still achieve things like this.

Thank you for your feedback anyway! 👍

@PhrozenByte PhrozenByte removed this from the Backlog milestone May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants