vindarel / lisp-journey

Discovering the Common Lisp ecosystem. https://lisp-journey.gitlab.io/
2 stars 0 forks source link

blog/custom-djula-filter/ #17

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Custom Djula filters - Lisp journey

Djula is a Common Lisp port of the Django templating language. It’s good, it’s proven (it’s one of the most downloaded Quicklisp packages), it is easy to use and it has good documentation.It basically looks like this:{% extends "base.html" %} {% block title %}Memberlist{% endblock %} {% block content %} <ul> {% for user in users %} <li><a href="{{ user.url }}">{{ user.username }}</a></li> {% endfor %} </ul> {% endblock %} What was missing in the documentation was how to create custom filters.

https://lisp-journey.gitlab.io/blog/custom-djula-filter/

tdrhq commented 3 years ago

May I also suggest trying out my little library for HTML: https://github.com/moderninterpreters/markup

@charJe built some fantastic editor support for Emacs too, I think this is the most productive I've ever been with HTML in any language.

vindarel commented 3 years ago

I will if and when I can! In the meanwhile, be sure to reference it on Cliki or the Awesome-cl list. And/or… write a blog post, show us some code and post it on reddit :)

tdrhq commented 3 years ago

@vindarel It's on cliki, and I posted on reddit a while ago (https://www.reddit.com/r/lisp/comments/avu1kc/i_built_an_xmlhtml_reader_macro_in_lisp/). I haven't looked at awesome-cl yet