Rasmus.krats.se

English

Skriverier då och då, på webben sedan 1995

Taggat project

A compiling template system in Rust

Publicerad taggat , , , .

When developing web applications, it is often useful to have a template system. Something that lets you write generic versions of web pages, that the application can fill with the specific content for each page it should show. There exists lots of "languages" to write such templates, such as mustache, jinja2, and play 2 scala templates (twirl).

Most fits very well with a dynamic language, where you can get properties from an object, or even call a method, by its name in a plain string. In a statically compiled language, the actual names of fields and methods are not relevant, and generally not present, after compilation. This makes a "dynamic" template language a hard match for a compiling language such as rust. So why not try to create a better match?

Läs och kommentera inlägget A compiling template system in Rust

XkBiff

Publicerad taggat .

XkBiff is my attempt at a biff program that understands kpop. When there is mail, it pops up another window featuring the From and Subject fields of the mails.

Läs och kommentera inlägget XkBiff