Rich Harris
dba83641e4
remove glob and cheerio from dependencies
2018-08-19 15:20:14 -04:00
Rich Harris
731d4f535c
skip layout components where none is provided - fixes #312
2018-07-23 16:31:00 -04:00
Rich Harris
f8c731ca21
failing tests for #312
2018-07-23 14:31:11 -04:00
Rich Harris
58de0f9c99
Nested routes
...
Fixes #262
2018-07-22 21:00:37 -04:00
Rich Harris
8dc52a04e4
split pages and server routes into separate arrays
2018-07-05 08:14:07 -04:00
Rich Harris
008b607c01
generate pages and server routes separately
2018-07-04 10:53:41 -04:00
Elco Brouwer von Gonzenbach
4f011bfc37
Convert whitespace to tabs. Add some unit tests for create routes
2018-07-02 11:52:17 +07:00
Rich Harris
b7bb4db8c1
treat foo/index.json.js as foo.json.js - fixes #297
2018-06-28 13:20:41 -04:00
Rich Harris
5b5f33d3cf
error on 4xx.html and 5xx.html
2018-06-28 12:57:59 -04:00
Rich Harris
e87247493f
replace 4xx.html and 5xx.html with _error.html
2018-06-28 11:38:21 -04:00
Rich Harris
b525eb6480
get tests passing
2018-05-04 17:19:39 -04:00
Rich Harris
9e2d0a7fbc
Merge branch 'master' into collision
2018-05-04 17:05:18 -04:00
Akihiko Odaki
ba7525c676
Ignore files and directories with leading dots except .well-known
2018-05-04 22:18:23 +09:00
Rich Harris
992d89027d
Merge branch 'master' into collision
2018-05-03 21:44:28 -04:00
Akihiko Odaki
917dd60cc3
Allow to have middleware for the path same with a HTML page
...
HTTP allows to change the type of the content to serve by Accept field in
the request. The middleware for the path same with a HTML page will
be inserted before the HTML renderer, and can take advantage of this
feature, using expressjs's "accepts" method, for example.
2018-04-15 23:11:08 +09:00
Akihiko Odaki
b13cc6f39a
Do not encode characters allowed in path when generating routes
...
In RFC 3986, some characters not allowed in query, which encodeURIComponent
is designed for, is allowed in path.
A notable example is "@", which is commonly included in paths of social
profile pages. Such characters should not be encoded.
The new encoding function is conforming to the RFC.
2018-04-14 01:08:27 +09:00
Rich-Harris
25809ec409
enforce stable sort
2018-03-25 15:12:35 -04:00
Rich Harris
ef55fc5ddd
move built files to dist
2018-03-10 23:20:11 -05:00
Rich Harris
254e41b11e
use code-splitting etc
2018-03-10 22:26:53 -05:00
Rich Harris
8bb0999878
fix route sorting
2018-03-07 14:26:30 -05:00
Rich Harris
58c1eb9fa8
allow dynamic parameters inside route parts - fixes #139
2018-02-28 09:39:21 -05:00
Rich Harris
fc631c4866
make route handling more explicit
2018-01-21 15:41:13 -05:00
Rich Harris
dd8deb2d8a
wip 3
2018-01-21 14:41:11 -05:00
Rich Harris
7d721abb2a
wip 2
2018-01-21 11:15:32 -05:00
Rich Harris
39b1fa89ce
wip
2018-01-21 11:03:23 -05:00
mrkishi
8a8526d9ed
Identify js and html route clashes
2018-01-20 01:42:13 -02:00
Rich Harris
423e02aeae
handle nested routes - fixes #55
2017-12-31 13:25:52 -05:00
Rich Harris
f50d3c4262
error if routes clash - fixes #33
2017-12-20 20:46:28 -05:00
Rich Harris
c1b1b3ed63
add some tests - closes #10
2017-12-18 21:39:17 -05:00
Rich Harris
8da3ca16ab
Separate build step ( closes #21 )
2017-12-18 15:38:56 -05:00