Commit Graph

633 Commits

Author SHA1 Message Date
Liam Newman
9a53aba300 Handlebars unless and else if
Fixed #800
Fixes #1123
2018-08-11 18:38:47 -07:00
Liam Newman
59b416666f Remove extra code 2018-08-11 18:08:48 -07:00
Liam Newman
cc76cc6e82 Fixes for line wrap in Html
Closes #607
Closes #1304
Closes #1383
Fixes #1401
2018-08-11 17:59:19 -07:00
Liam Newman
ab4d2f02e4 Improve test output for failures 2018-08-11 15:53:03 -07:00
Liam Newman
77d1460e5f Improved reporting 2018-08-11 15:32:58 -07:00
Liam Newman
b760fc828f Add tokenizer to html beautifier 2018-08-10 22:56:35 -07:00
L. D. MacKrell
7eb4e3b29b Test for spacing around attribute value selector 2018-08-09 17:16:09 -07:00
Liam Newman
33e8195e79 Code format changes 2018-08-07 02:01:47 -07:00
Liam Newman
d2b4e272c4 Use read for recent change 2018-08-06 15:29:47 -07:00
Liam Newman
acd0086be3 Move javascript core classes to prototype
Results in 50% performance improvment.
2018-08-06 15:25:32 -07:00
Liam Newman
4e971ee215 Use javascript inheritance for tokenizer 2018-08-06 15:25:32 -07:00
Liam Newman
6298ddbfc0 Remove duplicate readUntilAfter code 2018-08-06 15:25:32 -07:00
Liam Newman
dc00c56e60 Use regexp for reserved words 2018-08-06 15:25:32 -07:00
Liam Newman
00e5407b85 Reorganize tokenizer 2018-08-06 15:25:32 -07:00
Liam Newman
28e86b9af8 TokenStream in Python 2018-08-06 15:25:32 -07:00
Liam Newman
a69766418a Core.Tokenizer in Python 2018-08-06 15:25:32 -07:00
Liam Newman
acbf7d609d Remove extra fields from Token 2018-08-06 15:25:32 -07:00
Liam Newman
9218d39c65 Change readWhile to read 2018-08-06 15:25:32 -07:00
Liam Newman
c3f7fe75ea Directives in python 2018-08-06 15:25:32 -07:00
Liam Newman
a235009c97 TokenStream 2018-08-06 15:25:32 -07:00
Liam Newman
dbbaa509ea TokenFactory 2018-08-06 15:25:32 -07:00
Liam Newman
bbb86b44f0 Add related classes 2018-08-06 15:25:32 -07:00
Liam Newman
2e9a299851 Inherit tokenizer from core 2018-08-06 15:25:32 -07:00
Liam Newman
b64d9dd6cd Tweak test description 2018-08-06 14:44:28 -07:00
Liam Newman
c2d1b16c1a
Merge branch 'master' into closing_tags 2018-08-06 14:06:38 -07:00
L. D. MacKrell
d751e0c46e Update closing tags to handle no space 2018-08-06 13:50:34 -07:00
Liam Newman
0494243223
Merge branch 'master' into tagtest 2018-08-06 13:10:16 -07:00
L. D. MacKrell
b50ded1227 Add test for p tag formatting issue resolved in prior version 2018-08-06 11:07:40 -07:00
Liam Newman
ca327927c1 Add polyfill to web page to support older browsers 2018-08-03 20:14:33 -07:00
L. D. MacKrell
064e7f3121 Add test for else if in handlebars 2018-08-02 23:39:56 -07:00
L. D. MacKrell
57c81047af Add test for Handlebars indenting issue 2018-08-02 23:02:27 -07:00
L. D. MacKrell
18225c5de2 Ensure space between adjacent words in js 2018-08-01 15:39:44 -07:00
Liam Newman
1e5ff53df5 Additional minor tweaks 2018-08-01 12:43:47 -07:00
Liam Newman
2e6972bbc1 Avoid joining content twice for most elements 2018-07-31 21:19:00 -07:00
Liam Newman
e3f01c58c0 Simpler and faster unformatted processing
get_unformatted is heavily used - in particular for string reading.
This change results in perf improvement of 20% in most cases,
up to 3000% in the base64 image edge case.
2018-07-31 21:11:20 -07:00
Liam Newman
93c5efdd0c Do not lowercase elements
Fixes #1464
2018-07-31 21:01:37 -07:00
Liam Newman
cfe797f6e4 Regression test for #1461 2018-07-31 11:04:09 -07:00
Liam Newman
2b0d6e8e86 Fix adding spaces and indents to handlebars
Fixes #1460
2018-07-26 16:02:45 -07:00
Liam Newman
d75357aa31 More cleanup 2018-07-26 14:46:48 -07:00
Liam Newman
bd1610fad9 Refactor number recognition to regex 2018-07-26 11:14:32 -07:00
Liam Newman
bdb82fb80d Add TOKEN object 2018-07-25 23:28:13 -07:00
Liam Newman
4556d25f67
Merge pull request #1455 from vivainio/master
Use entry_points to create script. Fix #1266 (script not working on Windows)
2018-07-25 22:56:25 -07:00
Liam Newman
e1a6de6385 Reorganizing build pipeline 2018-07-25 22:40:25 -07:00
L. D. MacKrell
3993da255a Update comment on spidermonkey sharp in tokenizer 2018-07-25 13:19:45 -07:00
L. D. MacKrell
05e10caa9b Fix LESS variable formatting 2018-07-25 11:55:01 -07:00
Liam Newman
2fc2daf483 Add node packaging and tests
Fixed #1254
2018-07-25 07:05:21 -07:00
L. D. MacKrell
ad7841ee19 Update handle operator to preserve newline before unary 2018-07-23 15:02:08 -07:00
L. D. MacKrell
d8a2b21ef8 Make output debuggable 2018-07-23 13:20:30 -07:00
Liam Newman
008721a9ed Remove html beautifier peekString 2018-07-20 11:54:26 -07:00
Liam Newman
1f15cb81fc Clean up content reading 2018-07-20 00:41:09 -07:00