Options:
- resolve(filename, source) => filename
- read(filename) => string
Steps:
- pre-lex
- lex
- post-lex
- pre-parse
- parse - this should produce a special node type of
{type: 'file-reference', path: './foo.jade'}that the loader recognises and populates - post-parse
- pre-load
- load - Load takes a pipeline for handling strings, as well as the options in order to combine everything into one single object.
- post-load
- pre-link
- link
- post-link - this is when default filters are applied
- pre-gen - this is a good time to verify that all the JavaScript is valid. i.e. validate expressions etc.
- gen
- post-gen