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

feature request: Allow markdown files to be processed in templates #199

Open
wolftune opened this issue Dec 16, 2016 · 5 comments
Open

feature request: Allow markdown files to be processed in templates #199

wolftune opened this issue Dec 16, 2016 · 5 comments

Comments

@wolftune
Copy link

wolftune commented Dec 16, 2016

Simplest version is to just allow markdown files to be used where they get run through pandoc or similar (ideally a setting for whoever to choose the processor) and then the resulting HTML is used where the processed Hamlet file would otherwise be used.

Possible alternate or addition could be a Hamlet command that specifies that the block within that command is markdown and should be processed as such.

Ideal: recognize hamlet functions like typesafe URLs and such within a markdown file so that the combination of markdown and type safety is possible.

The primary goal here is to make it even more approachable for Yesod projects to reach wider audience of contributors who may be more comfortable with markdown than HTML. But there's other potential uses and advantages, especially the readability factor of the code as readable text. Also, content would be easier to share across various contexts / platforms that happen to use Markdown.

@snoyberg
Copy link
Member

snoyberg commented Dec 20, 2016 via email

@erikd
Copy link
Contributor

erikd commented Dec 20, 2016

If you're using Roman names shouldn't it be "Marcus" instead of "Markus"?

@snoyberg
Copy link
Member

snoyberg commented Dec 20, 2016 via email

@chreekat
Copy link
Contributor

By the way, I haven't looked into it yet, but http://github.com/arowM/heterocephalus seems to be moving in a direction I think could be valuable.

@cdepillabout
Copy link

cdepillabout commented Jan 14, 2017

@chreekat If you have any requests/suggestions for heterocephalus feel free to open an issue/PR.

(Pinging @arowM as well.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants