askama icon indicating copy to clipboard operation
askama copied to clipboard

Warn about unused template files

Open P-E-Meunier opened this issue 6 years ago • 3 comments

I love this project! However, as a web project evolves, it is not uncommon for old template files to accumulate and ultimately become dead code.

It would be very cool if Askama could issue a warning when this is the case.

P-E-Meunier avatar Nov 25 '18 15:11 P-E-Meunier

Glad you like it! Are you going to use it for the Pijul web interface?

Unfortunately I don't think there is a straightforward way to do so. The only way I can think of would involve parsing all the source code and all the templates in a build script, which would be complex to maintain and slow down your compiles.

djc avatar Nov 25 '18 17:11 djc

Right now it's for another (smaller) project, but yes, I'm seriously considering it for the Nest.

P-E-Meunier avatar Nov 25 '18 20:11 P-E-Meunier

Nice -- let me know if you need anything to make it work.

djc avatar Nov 25 '18 20:11 djc