Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Global mixins (for pug templates) #96

Open
akyoto opened this issue Nov 17, 2016 · 0 comments
Open

Global mixins (for pug templates) #96

akyoto opened this issue Nov 17, 2016 · 0 comments

Comments

@akyoto
Copy link
Collaborator

akyoto commented Nov 17, 2016

One should be able to write global mixins which can be called from any Pug template.
A classic example is to have a global mixin for rendering avatars / gravatars and simply calling +avatar(user) in the templates which keeps everything DRY and simple.

The basic concept is to add a new folder mixins where each .pug file will be loaded and included for usage in other page templates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant