Skip to content

Commit

Permalink
Merge pull request #671 from kethinov/0.6.7
Browse files Browse the repository at this point in the history
0.6.7
  • Loading branch information
kethinov authored May 26, 2024
2 parents e009ec6 + 9aaa154 commit 7399449
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 59 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- Put your changes here...

## 0.6.7

- Fixed issue causing server-side comments to not be stripped from templates parsed as strings instead of as files.
- Updated various dependencies.

## 0.6.6

- Fixed issue causing the template caching feature to not work properly in Express apps.
Expand Down
103 changes: 54 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/rooseveltframework/teddy/graphs/contributors"
}
],
"version": "0.6.6",
"version": "0.6.7",
"files": [
"dist"
],
Expand All @@ -31,11 +31,11 @@
"xregexp": "5.1.1"
},
"devDependencies": {
"@playwright/test": "1.44.0",
"@playwright/test": "1.44.1",
"c8": "9.1.0",
"codecov": "3.8.3",
"cross-env": "7.0.3",
"eslint": "9.2.0",
"eslint": "9.3.0",
"eslint-plugin-html": "8.1.1",
"eslint-plugin-mocha": "10.4.3",
"mocha": "10.4.0",
Expand All @@ -62,15 +62,15 @@
},
"scripts": {
"build": "webpack",
"coverage": "npm run coverage:server && npm run coverage:client",
"coverage:server": "npm run build && cross-env NODE_ENV=cover c8 mocha --timeout 60000 test/loaders/mocha.js",
"coverage:client": "npm run build && cross-env NODE_ENV=cover c8 playwright test",
"coverage": "npm run coverage-server && npm run coverage-client",
"coverage-server": "npm run build && cross-env NODE_ENV=cover c8 mocha --timeout 60000 test/loaders/mocha.js",
"coverage-client": "npm run build && cross-env NODE_ENV=cover c8 playwright test",
"lint": "standard && eslint ./test && standard --plugin html *.html",
"lint-fix": "standard --fix && eslint ./test && standard --plugin html *.html --fix",
"test": "npm run test:server && npm run test:client",
"t": "npm run test:server && npm run test:client",
"test:client": "npm run build && playwright test",
"test:server": "npm run build && cross-env NODE_ENV=test mocha --timeout 60000 test/loaders/mocha.js",
"test": "npm run test-server && npm run test-client",
"t": "npm run test-server && npm run test-client",
"test-client": "npm run build && playwright test",
"test-server": "npm run build && cross-env NODE_ENV=test mocha --timeout 60000 test/loaders/mocha.js",
"prepack": "npm run build"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions teddy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function loadTemplate (template) {
template = templates[template]
register = true
}
template = removeTeddyComments(template)
}
}
if (register) {
Expand Down
6 changes: 6 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,12 @@ export default [
test: (teddy, template, model) => teddy.render(template, model),
expected: '<p>test test</p>'
},
{
message: 'should remove {! server side comments !} in an inline template',
template: 'misc/serverSideComments',
test: (teddy, template, model) => teddy.render('{! comments !}<p>Should remove {! the !} comments.</p>', model),
expected: '<p>Should remove comments.</p>'
},
{
message: 'should remove {! {! nested !} server side comments !} (misc/serverSideCommentsNested.html)',
template: 'misc/serverSideCommentsNested',
Expand Down

0 comments on commit 7399449

Please sign in to comment.