martini-contrib / render

Martini middleware/handler for easily rendering serialized JSON, XML, and HTML template responses.
MIT License
245 stars 57 forks source link

Allow render Markdown templates #10

Closed fern4lvarez closed 10 years ago

fern4lvarez commented 10 years ago

I'd like to have on my templates directory Markdown files which could be rendered as html code. Is this possible? Os should I use some tool like Blackfriday by my own?

codegangsta commented 10 years ago

Blackfriday is an excellent choice for rendering markdown and it should be too difficult to integrate yourself :)

Sent from my iPhone

On Mar 6, 2014, at 5:50 AM, Fernando Álvarez notifications@github.com wrote:

I'd like to have on my templates directory Markdown files which could be rendered as html code. Is this possible? Os should I use some tool like Blackfriday by my own?

— Reply to this email directly or view it on GitHub.

codegangsta commented 10 years ago

closing

ghost commented 10 years ago

Is it possible to pass to render.Render some HTML? I have markdown stored in a DB, and currently blackfriday is converting that to HTML for me, but i'm not sure how best to pass that into the templates.

ghost commented 10 years ago

ok, got it. Just needed to pass it in to the functionmaps