Skip to content

Commit

Permalink
remove escapes for nunjacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Metelkin committed Nov 2, 2023
1 parent c2a8421 commit eb4f5c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 2 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# TODO list

- hot keys for InfoPage
- Download project button
- ! Download project button
- switch monaco themes
- nice css styles
- support of smartphones
- replace font awesome 4 for something light
https://github.com/danklammer/bytesize-icons
- load files with full path
- dot files visualization
? Matlab language support
? dot language support
? platform.yml
? console at the bottom
? file content manager

## Errors

- ' ??? in export
7 changes: 7 additions & 0 deletions nunjucks.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// this can be removed for futute versions of heta-compiler
let xxx = require('heta-compiler/src/nunjucks-env');

module.exports = function(env){
env.opts.autoescape = false;
xxx(env);
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const config = {
test: /\.(njk|nunjucks)$/,
loader: 'nunjucks-loader',
options: {
config: __dirname + '/node_modules/heta-compiler/src/nunjucks-env',
config: __dirname + '/nunjucks.config.js', // '/node_modules/heta-compiler/src/nunjucks-env',
//quiet: true // Don't show the 'Cannot configure nunjucks environment before precompile'
}
}
Expand Down

0 comments on commit eb4f5c2

Please sign in to comment.