cl-djula-svg

2022-11-07

Handle SVGs in Djula Templates

Upstream URL

github.com/rajasegar/cl-djula-svg

Author

Rajasegar Chandran

License

MIT
README

cl-djula-svg

Build and Deploy Quicklisp MIT License

A Common Lisp package that will help process SVG files and copy them to folders so that they can be used in Djula templates in a Caveman web application framework.

Features

  • Adds / Updates height, width, fill, class attributes in the svg root element
  • Copy files from one directory to another after processing them

Usage

You can use the copy-svg function from this package by supplying the source and destination directories:

(copy-svg "./quicklisp/local-projects/cl-djula-svg/static/svgs/" "./quicklisp/local-projects/cl-djula-svg/templates/svgs/")

Installation

You can install cl-djula-svg via quicklisp:

(ql:quickload :cl-djula-svg)

Author

  • Rajasegar Chandran

Copyright

Copyright (c) 2022 Rajasegar Chandran

Dependencies (3)

  • alexandria
  • rove
  • xmls

Dependents (0)

    • GitHub
    • Quicklisp