#pugjs — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pugjs, aggregated by home.social.
-
Text blocks are now a thing in #hsml :ablobcatattention:
They can be used to write rich text *like longer lorem ipsum stuff* or **embedded** #css or #javascript!
The text will **not** escaped (#pugjs does this), so you can do stuff like:```html
.alert.
<span class="closebtn">×</span>
<strong>Danger!</strong> Indicates a dangerous or potentially negative action.
```This would result in valid #html (*by design*)
https://github.com/Shinigami92/hsml/commit/25a563687464994e9d0cd31c0b9ec604c176f46b
-
I have some project ideas, but don't know if they are worth to make them.
One would be a theoretically rewrite of #PugJS in #Rust called #hsml (HyperShortMarkupLanguage). It wont have all features that pug has, but only support native #html syntax without the template engine stuff. So it could be used in #vue or #angular, and it would have some special features over pug like comments in attributes and support for more complex tailwindcss classes, but wont have support for e.g. mixin.
-
I've just finished enabling compression and minification for my father's portfolio static website. And it also uses lazy loading of images for the gallery in the homepage. There also are rate limiting (I suppose they may be useful for excessive crawling and bot usage) and security headers.
I used mainly #ExpressJS and #PugJS.
(the site may be of your interest if you are located in Italy, more specifically near Bari, and are interested in paintings and decorations)