ashes icon indicating copy to clipboard operation
ashes copied to clipboard

⚱️ Lightweight, self-contained templating for Python 2 and 3, a la Dust templates

Results 14 ashes issues
Sort by recently updated
recently updated
newest added

https://akdubya.github.com/dustjs/ is a dealink. Replacing with the most well-known supported fork of the project (i.e Dust by Linkedin). It even seems to be alive! (2 new releases this year).

I noticed that missing parameters are rendered as empty strings. ``` >>> ashes_env.register_source('hello', 'Hello, {name}!') >>> ashes_env.render('hello', {}) 'Hello, !' ``` It would be nice if it was possible to...

Apologies if I've missed this in the docs but what are my options for calling plain old python functions directly from the templates? Is this easy/possible? The equivalent of something...

Dust has a convenient @select helper statement to handle different cases in code flow. Ashes currently doesn't support it. Can that feature be added?

I've been playing around with 'consumption tracking' of ashes templates for a while, but haven't figured out a good approach yet. I figured I should post here and perhaps someone...

I'm very new to this library and the first question I have in mind (you may find it trivial): is there any flexible way to extend the list of features...

In templates, it seems ashes hardcodes the delimiter to be opening and closing curly brackets. It think it would be a small but useful feature to have any arbitrary string...

This is somewhat hackish, seeing the right place would be in somewhere in `tokenize(...)` and/or the routines that call it. I might make an update later to put this in...

I was about to write an `iterate` helper, but then noticed you had one in the source already (!) I couldn't find any docs for it (aside from the source...

LinkedIn has [forked Dust.js](http://linkedin.github.io/dustjs/) because the original developer/maintainer [isn't responsive](https://github.com/akdubya/dustjs/pulls). Given the number of improvements LinkedIn have made, it might be better to compare your compatibility to their fork.

enhancement