Thanks for the tips. Doit does look interesting. Regarding template plugins with Nikola the plugins would be only for python template alternatives such as mako.
Mainly i find the whitespace and readability of Jade/pug far more pythonic than all tge brackets {% .... %} yes its a minor thing but so much clearer. Anyway checked out mako which has some improvement might see if there is another with support and create a nikola plugin and then give it a try. Cheers Sayth On Thu, 14 Apr 2016 1:19 am Chris Warrick <kwpol...@gmail.com> wrote: > On 12 April 2016 at 11:48, Sayth Renshaw <flebber.c...@gmail.com> wrote: > > Hi > > > > Looking at the wiki list of build tools > > https://wiki.python.org/moin/ConfigurationAndBuildTools > > > > Has anyone much experience in build tools as i have no preference or > experience to lean on. > > > > Off descriptions only i would choose invoke. > > > > My requirements, simply i want to learn and build a simple static > website generator. Many i am not liking design of or are overkill so its a > good opportunity to learn, logya is a good starting point for what i think > a good python static generator should be. > > > > Second i want to use Jade templates (js) as i think they are more > pythonic than jinja and mako so being able to have mixed js and python > support would be needed. > > > > Thoughts? > > > > Sayth > > -- > > https://mail.python.org/mailman/listinfo/python-list > > Here’s a great static site generator (disclaimer, I’m a core dev over > there): > > https://getnikola.com/ > > We use doit, which is on that list. With doit, we get an existing > build system, and incremental rebuilds — for free. I recommend you try > Nikola, and if you don’t like it and still want to build something > yourself, doit is going to be a great way to do it. That said, > incremental builds often involve trial-and-error and subtle bugs when > you start working on it. And if you don’t like doit, you can always > write your own build micro-system. Because if you want to write > something simple and minimal, an existing large build system will just > make things harder. > > As for Jade templates, you can’t do that reasonably. You would need to > produce some hack to spawn a JavaScript subprocess, and it would limit > what you can use in templates. Instead, look for a template system > that is written in Python and that has similar syntax. > > (also, I wouldn’t consider such weird-thing-into-real-HTML template > engines pythonic) > > -- > Chris Warrick <https://chriswarrick.com/> > PGP: 5EAAEA16 > -- https://mail.python.org/mailman/listinfo/python-list