Use pypugjs for rendering #51156

Closed
opened 2017-04-08 12:59:14 +02:00 by Francesco Siddi · 5 comments

Currently we implement templates using pug and then use a gulp task to generate the HTML. By starting to use pypugjs :

  • designing and debugging templates becomes easier (debug display is closer to the source)
  • we simplify the pipeline by removing jade compilation (faster deploys and faster development preview)

This is a test run using index.html, extending layout.html (most of the current Blender Cloud pages have this level of complexity).

PUG

1st run:  0.13042s
next run: 0.00181s
next run: 0.00182s
next run: 0.00328s

HTML

1st run:  0.13313s
next run: 0.00177s
next run: 0.00234s
next run: 0.00393s

There seems to be no performance issue. The task would consist of:

  • renaming all .jade files to .pug and moving them from /src to /templates
  • introducing the new pypugjs requirement
  • updating the gulp script
  • updating the gitignore rules
Currently we implement templates using pug and then use a gulp task to generate the HTML. By starting to use [pypugjs ](https://github.com/matannoam/pypugjs): - designing and debugging templates becomes easier (debug display is closer to the source) - we simplify the pipeline by removing jade compilation (faster deploys and faster development preview) This is a test run using index.html, extending layout.html (most of the current Blender Cloud pages have this level of complexity). PUG ``` 1st run: 0.13042s next run: 0.00181s next run: 0.00182s next run: 0.00328s ``` HTML ``` 1st run: 0.13313s next run: 0.00177s next run: 0.00234s next run: 0.00393s ``` There seems to be no performance issue. The task would consist of: - renaming all .jade files to .pug and moving them from `/src` to `/templates` - introducing the new pypugjs requirement - updating the gulp script - updating the gitignore rules
Francesco Siddi self-assigned this 2017-04-08 12:59:14 +02:00

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @fsiddi

Added subscriber: @fsiddi

Added subscriber: @pablovazquez

Added subscriber: @pablovazquez

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

After some testing, this proved to be a failure. The lack of support for block elements inside of tags, combined with the lack of documentation and active support do not make this library suitable for Pillar.

After some testing, this proved to be a failure. The lack of support for block elements inside of tags, combined with the lack of documentation and active support do not make this library suitable for Pillar.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/pillar#51156
No description provided.