Search code examples
clojurepedestal

How to render HTML templates in Pedestal?


I am going over the Pedestal docs at

https://github.com/pedestal/pedestal/tree/master/guides/documentation

There are no examples for how to render html from templates. Does pedestal even have this functionality? If so, can anyone please explain how this works, with an example...


Solution

  • Pedestal doesn't ship with a template system, but instead relies on third-party libraries. You could check this template-serverexample.

    It demonstrates the use of several popular templating libraries :

    But you could use any templating library you want.

    Here is an article to help choose one.