Programming

Template fragments with Mojolicious

If you’re using the excellent htmx library for adding interactivity to your website or webapp you greatly benefit from using a templating engine that supports rendering fragments (I suggest reading this first if you don’t know yet about fragments and why they’re useful, especially in the context of htmx). Using fragments you’ll be able to

Template fragments with Mojolicious Read More »

Prevent indentation when pasting from an external source in Vim

Occasionally when I copy and paste something from an external source into Vim every line gets indented, which is probably not something you want when pasting a code snippet. The solution to this problem is an easy one. Before pasting, first execute :set paste, then paste your content and to return the setting to its

Prevent indentation when pasting from an external source in Vim Read More »

Scroll to Top