Please make sure to follow the code style of the existing code base.

Specifically:

  • use single ('') rather than double ("") quotation marks for Jinja strings
  • in Jinja print statements, surround the variable with spaces inside curly braces – for example: {{ foo.bar }}
  • use double ("") quotation marks around HTML attributes
  • end files with a newline

You can run gulp validate task to validate the templates files using Jinja Ninja. It is not comprehensive but it does point out obvious mistakes. You can read more about using gulp here.

Like this post? Share on: TwitterFacebookEmail


Talha Mansoor Avatar Talha Mansoor is the creator and lead developer of Elegant theme.

Published

Last Updated

Category

Contributing

Stay in Touch

Get New Release Alert