Joachim Van Herwegen
990184dbb5
refactor: Use node protocol when importing builtins
2023-11-02 09:49:17 +01:00
Joachim Van Herwegen
def0b5c732
refactor: Enable consistent newlines in lists
2023-11-02 09:49:17 +01:00
Joachim Van Herwegen
6248ed0938
refactor: Replace linting configurations
...
The previous package was outdated, preventing us from updating TS.
This one also lints YAML and JSON,
and applies many more rules to the test files,
explaining all the changes in this PR.
2023-11-02 09:49:17 +01:00
Wannes Kerckhove
cf74ce3d2a
fix: Convert TemplateEngine to AsyncHandlers
2022-09-26 09:42:18 +02:00
Jasper Vaneessen
2814e72b34
feat: Respect root path for static assets and HTML links
...
* feat: rootpath for static assets and links1
* fix: static asset handler respects root path
* fix: use rootPath for links
* tests: fix the tests after adding consuctor params
* feat: change matchregex instead of stored URLs
* feat: baseUrl for handlebar engine and templates
* feat: full baseUrl passed to templates
* test: fix integration tests + templates
* chore: implement requested changes
* docs: Describe TemplateEngine interface changes
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2022-05-24 10:20:41 +02:00
Jasper Vaneessen
fe39f97ee0
refactor: Use fs-extra instead of fs to simplify file access
...
* refactor: use fs-extra instead of fs
* tests: manual mocks for fs-extra base + ensureDir
* refactor: mockFileSystem + mockFs and mockFsExtra
* add remove mock and some further test tweaks
* test: FileDataAccessor tests passing
* refactor: remove try-catch due to fs-extra handlin
* refactor: fs-extra in atomicFileDataAccessor
* refactor: AtomicFileDataAccessor fs-extra
* test: fix coverage
* refactor: use read/writeJson from fs-extra
* refactor: less duplicate mocking code
* refactor: re-use opendir mocking code
2022-04-12 11:02:30 +02:00
Joachim Van Herwegen
af049124bf
chore: Update eslint dependencies
2022-01-24 09:37:50 +01:00
Joachim Van Herwegen
42d3ab0a4c
fix: Add filename parameter for EJS templates
...
This is required if we want to include partial templates
2021-09-27 10:32:34 +02:00
Joachim Van Herwegen
18a71032c0
feat: Create ChainedTemplateEngine for combining engines
2021-08-03 12:52:30 +02:00
Ruben Verborgh
9628fe98b8
refactor: Align EJS engine with Handlebars.
2021-07-22 11:12:21 +02:00
Ruben Verborgh
19624dc729
refactor: Allow default template in template engines.
2021-07-22 11:12:21 +02:00