Commit Graph

2455 Commits

Author SHA1 Message Date
Dillon Kearns
51066fbe80 Fix types in routing example. 2021-05-23 11:03:54 -07:00
Dillon Kearns
4f0f03145b Fix types in slides example. 2021-05-23 11:01:44 -07:00
Dillon Kearns
40fbf3a14f Fix test. 2021-05-23 10:53:43 -07:00
Dillon Kearns
a2bd42f617 Use Path instead of PagePath in Manifest API. 2021-05-23 10:53:01 -07:00
Dillon Kearns
5a88903f4e Fix test. 2021-05-23 10:44:39 -07:00
Dillon Kearns
dd70e0ae8c Replace some instances of PagePath with Path. 2021-05-23 10:43:53 -07:00
Dillon Kearns
366ca7ab80 Generate routeToPath without Maybe. 2021-05-23 10:20:09 -07:00
Dillon Kearns
59f6f9012a Update docs. 2021-05-23 10:09:19 -07:00
Dillon Kearns
b147d17a1d Add Path.fromString. 2021-05-23 10:07:39 -07:00
Dillon Kearns
8a982aa884 Add new Path API. 2021-05-23 10:03:21 -07:00
Dillon Kearns
d908d8d01c Rename Document -> View. 2021-05-23 09:00:20 -07:00
Dillon Kearns
e9d42d8a59 Add a basic JsPort DataSource wiring. Still not ready for production usage, but the basic wiring works. 2021-05-23 08:47:36 -07:00
Dillon Kearns
2d69c67dec Pass in DataSource with all routes to API Routes for use in generating files like Sitemap. 2021-05-22 18:56:16 -07:00
Dillon Kearns
3401de3da4 Add rss feed file in api routes. 2021-05-22 11:53:14 -07:00
Dillon Kearns
915118174d Make **/* regex-compatible in match/capture functions. 2021-05-21 09:42:45 -07:00
Dillon Kearns
3b82c7b935 Escape HTML tags in html-to-elm code, to match the logic in the Elm virtual dom here 5a5bcf4872/src/Elm/Kernel/VirtualDom.server.js (L8-L26). 2021-05-21 09:20:54 -07:00
Dillon Kearns
92397dda44 Remove redundant closing tag and defer tag (module imports are deferred already without that tag). 2021-05-21 09:20:54 -07:00
Dillon Kearns
50c4c6d682 Vendor elm-html-in-elm in preparation for fixing text node HTML escaping. 2021-05-21 09:20:54 -07:00
Dillon Kearns
526b93a086 Add a workaround for allowing **/* globs to use regex match that makes the / optional. Might revisit with an API-level change rather than a regex hack. 2021-05-21 09:20:54 -07:00
Dillon Kearns
61c246ed46 Update test with new recursiveWildcard list type. 2021-05-21 09:20:54 -07:00
Dillon Kearns
d530c6aad3 Remove empty strings in recursive wildcard. 2021-05-20 19:06:21 -07:00
Dillon Kearns
34c78d6bee Use new WHATWG URLs instead of deprecated url.parse. 2021-05-20 19:03:39 -07:00
Dillon Kearns
c389bce67f Don't try to do page navigation requests in dev server if there is a file extension. 2021-05-20 18:53:45 -07:00
Dillon Kearns
bb8f7140d5 Split recursive wildcards into path segments. 2021-05-19 19:02:01 -07:00
Dillon Kearns
d2b2408d31 Rename Glob.ignore -> Glob.match. 2021-05-19 18:20:47 -07:00
Dillon Kearns
48cac1dc92 Add missing @docs. 2021-05-19 08:00:56 -07:00
Dillon Kearns
bd4a9de2c4 Add missing parameter in example repo. 2021-05-19 07:59:39 -07:00
Dillon Kearns
7bcc276929 Add missing argument in test. 2021-05-19 07:58:37 -07:00
Dillon Kearns
3c848995da Include template/ folder in npm package. 2021-05-19 07:54:10 -07:00
Dillon Kearns
349108ad19 Update gitignored folder. 2021-05-19 07:53:59 -07:00
Dillon Kearns
e6dee3ea85 Update docs. 2021-05-18 11:39:47 -07:00
Dillon Kearns
583ab7603e Update docs. 2021-05-18 11:33:36 -07:00
Dillon Kearns
29aefaf9c3 Update docs. 2021-05-18 11:23:49 -07:00
Dillon Kearns
fff155bc21 Generate files in .elm-pages instead of gen. Fixes #165. 2021-05-18 11:04:56 -07:00
Dillon Kearns
1aa737c431 Rename static/ -> public/. 2021-05-18 10:44:30 -07:00
Dillon Kearns
4b429bd945 Comment out garbage collection hint for now since it's causing error in dev server. Need to investigate. 2021-05-18 09:28:53 -07:00
Dillon Kearns
df485eafa3 Include global head tags in dev server and build output. 2021-05-18 09:28:11 -07:00
Dillon Kearns
2a860a1936 Inline value. 2021-05-18 08:35:04 -07:00
Dillon Kearns
f3937241e4 Try making the compiled Elm garbage collectable by using the tip from https://gist.github.com/supermario/4c2615806c6c561a16edf5dd7208a759. 2021-05-18 06:53:04 -07:00
Dillon Kearns
246a9d8a06 Use the right logic for generating RouteParams in elm-pages add. 2021-05-18 06:52:23 -07:00
Dillon Kearns
62f1ac56f8 Remove Element import from elm-pages add template. 2021-05-18 06:31:16 -07:00
Dillon Kearns
c63291fd6d Add edit url in docs. 2021-05-17 20:39:41 -07:00
Dillon Kearns
12e5f88e10 Send message for clients to hot reload after deleting or adding a new route. 2021-05-17 18:35:51 -07:00
Dillon Kearns
9585e41d9a Clear glob cache entries when file paths change. 2021-05-17 17:15:04 -07:00
Dillon Kearns
ddbafa19d7 Extract view helper. 2021-05-17 17:02:23 -07:00
Dillon Kearns
95967ebcfe Add SEO example to landing page. 2021-05-17 16:59:18 -07:00
Dillon Kearns
a63e6a2b1f Rename field. 2021-05-17 16:36:49 -07:00
Dillon Kearns
7a861c6ec7 Add newline for formatting. 2021-05-17 16:16:46 -07:00
Dillon Kearns
c4b9f58e07 Change icon. 2021-05-17 16:16:40 -07:00
Dillon Kearns
5d0ee3d2c2 Add projects data source example to landing page. 2021-05-17 14:50:40 -07:00