I am wondering whether it is worth converting to a more generic templating engine such as mustache or handlebars instead of Django templates. The options I see for myself are:
- Stay with Django Templates (only server side)
- Convert completely to Mustache/Handlebars or such
- Use a hybrid approcah: Mustache/Handlebars as well as some usage of Django templates where applicable (ugliest option?)
Although conversion to Mustache/Handlebars like system buys me the flexibility of using the same templates on the client as well as server side, I do lose certain advantages provided by Django's templating system (such as Template Inheritance).
I know that there are fervent arguments for and against client side templating as well as server side templating. Some argue that rendering HTML on a busy server could make it slower while others argue that rendering HTML from JSON on the browser could make the client slower.
I am also aware of the arguments for using server side html rendering for non-javascript enabled devices, but most devices these days have javascript support.
Are there real and clear reasons for converting to Mustache/Handlebars etc from the Django templating system?
Thanks.