Repository navigation
Releases
Releases · edge-js/lexer
Update dependencies
Adding support for removing newlines after closing tag
- feat: add support to remove newline after closing tag 6857e49
Fix for v3.1.0
- fix: handle no newline conditions for inline tags as well 0f2dacb
Allow tags to disable newlines coming after them
Add support for dropping newlines after the tag
One can now use ~ in the tag syntax to drop newlines. For example:
@each(i in range(1, 10))~
{{i}}
@endeach
Output will be
12345678910
Without the ~, each number will be in its own line
@each(i in range(1, 10))
{{i}}
@endeach
1
2
3
4
5
6
7
8
9
10
Commits
- chore(deps): bump lodash from 4.17.13 to 4.17.20 (#6) f35460e
- chore(deps): bump minimist from 1.2.0 to 1.2.5 (#5) dbddcd7
- chore: update/format source files 7021340
- docs: update api docs f072622
- chore(package): update dependencies fe1a508
- feat: introduce ~ to drop newline after a tag a39ffb6
- improvement: simplify newlines logic b219cec
Updating underlying dependencies
Improvements to the way newlines are handled
Improvements to the newline emitting logic
- fix: do not emit newlines until we have received first non-tag text block ac13662
Improving the way newlines are handled
Goal
With the goal that newlines before and after tags must disappear in thin air, this release attempts to do that. However, the real impact will be clear after integrating it in real world apps. So do expect to see more related releases
Commits
- refactor: do not add newlines for tags starting or ending 40bd1c1