1
1
mirror of https://github.com/srid/ema.git synced 2024-12-02 09:15:10 +03:00
Commit Graph

163 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
c345c7bd80 Combine staticRoutes and staticAssets 2021-05-22 00:02:04 -04:00
Sridhar Ratnakumar
3216e818c9 Refactor 2021-05-21 21:23:45 -04:00
Sridhar Ratnakumar
7f6f15946c Simplify FileRoute further by using FilePath instead of [Slug] 2021-05-21 21:06:10 -04:00
Sridhar Ratnakumar
edd49514bf
Model-dependent static assets (#37)
* Have staticAssets take model as argument

Make server lenient

* FileSystem: allow ignoring patterns, eg: .git

* Match tag in order

* Fix ?== argument order

* refactor
2021-05-21 20:41:21 -04:00
Sridhar Ratnakumar
6492816d06 Add htmlSlugs to make writing instances non-ugly 2021-05-21 19:19:30 -04:00
Sridhar Ratnakumar
9f34000cd5 Add file extension to Route class 2021-05-21 19:16:46 -04:00
Sridhar Ratnakumar
e88b6cdb8c Tailwind: add baseUrl to account for rel routeUrl 2021-05-21 16:20:13 -04:00
Sridhar Ratnakumar
2d6bb31467 Drop Ema typeclass; add back as HtmlRoute typeclass 2021-05-21 16:19:57 -04:00
Sridhar Ratnakumar
61b3191792 Eject staticAssets out of class 2021-05-21 16:08:01 -04:00
Sridhar Ratnakumar
494b90bf18 ... fundeps no longer needed
Because ejecting staticRoutes also ejected the 'model' class argument
2021-05-21 14:17:00 -04:00
Sridhar Ratnakumar
be9dfe6207 Eject staticRoutes out of typeclass 2021-05-21 14:13:13 -04:00
Sridhar Ratnakumar
e032e7663e docs: change site description 2021-05-20 22:00:47 -04:00
Sridhar Ratnakumar
fdfd08f926
Update publish.yaml 2021-05-19 19:12:46 -04:00
Sridhar Ratnakumar
d04ca0c82b twind: render without using raw
Because it breaks heist
2021-05-19 18:57:04 -04:00
Sridhar Ratnakumar
e85a461f77 Add twindShim to dynamically determine shim
Also update tailwind cdn
2021-05-19 18:51:08 -04:00
Sridhar Ratnakumar
d6fd722b0d
Merge pull request #32 from srid/emanote-docs
Add back docs, and render using Emanote
2021-05-19 13:48:19 -04:00
Sridhar Ratnakumar
5876e66ba8 Prepare to merge 2021-05-19 13:48:04 -04:00
Sridhar Ratnakumar
a90120faa9 Avoid the leading slash in routeUrl 2021-05-19 13:37:02 -04:00
Sridhar Ratnakumar
cc573ee6ce Remove defaultApp 2021-05-19 13:24:52 -04:00
Sridhar Ratnakumar
5955897426 Adjust tutorial for new template 2021-05-19 13:20:10 -04:00
Sridhar Ratnakumar
be2a55c81f Add styling for next and last classes 2021-05-19 12:45:40 -04:00
Sridhar Ratnakumar
12a9af5cb0 publish: generate output outside of source 2021-05-19 00:04:04 -04:00
Sridhar Ratnakumar
8e5bd31dfe Fix syntax highlighting issue on tutorial page 2021-05-19 00:03:54 -04:00
Sridhar Ratnakumar
e4b4e71bc4 Publish 2021-05-18 23:56:55 -04:00
Sridhar Ratnakumar
36108d0529 Start porting to emanote 2021-05-18 22:43:37 -04:00
Sridhar Ratnakumar
2a010ea22d Import from ema-docs 2021-05-18 22:29:04 -04:00
Sridhar Ratnakumar
5c0763be32 Allow passing initial value to mount 2021-05-17 19:20:40 -04:00
Sridhar Ratnakumar
2c33a83733
FileSystem.mount: group multiple actions (#31)
* Group initial actions

* refactor
2021-05-17 18:26:31 -04:00
Sridhar Ratnakumar
ff7692e944 markdown: switch to yaml package 2021-05-16 16:34:08 -04:00
Sridhar Ratnakumar
df58a62139 Unicode normalize routeUrl (via decodeSlug) 2021-05-16 16:03:22 -04:00
Sridhar Ratnakumar
ed782ef1a9 slug: add aeson instances 2021-05-15 17:52:23 -04:00
Sridhar Ratnakumar
735b182dc8 slug: derive Data and Generic 2021-05-13 22:34:45 -04:00
Sridhar Ratnakumar
560d074241
mountOnLVar: gracefully handle user exceptions (#30)
* try handling errors in mountOnLVar

* cleanup and change log
2021-05-13 14:17:53 -04:00
Sridhar Ratnakumar
5d74220194
mountOnLVar: tag file patterns (#29) 2021-05-13 12:41:29 -04:00
Sridhar Ratnakumar
2354336f08
Merge pull request #28 from srid/mount-symlink-match
mountOnLVar: deal with symlinks and abspaths
2021-05-10 19:03:49 -04:00
Sridhar Ratnakumar
41dc0085cf mountOnLVar: deal with symlinks and abspaths 2021-05-10 19:01:44 -04:00
Sridhar Ratnakumar
e3a05de882 Be lenient on missing staticAssets 2021-05-10 18:19:42 -04:00
Sridhar Ratnakumar
e7bf0333da
Wikilink helper (#27) 2021-05-09 22:49:24 -04:00
Sridhar Ratnakumar
5f10887eaf
URI encoding for slugs (#25)
* Add encodeSlug, decodeSlug

* Decode URL into slug properly. Thus support whitespace in slugs

* refactor
2021-05-09 11:42:41 -04:00
Sridhar Ratnakumar
a5ba4ce6fb Add tree helpers 2021-05-08 08:57:20 -04:00
Sridhar Ratnakumar
7363c3f059 Unicode normalize slugs
Ref: https://github.com/srid/neuron/issues/611
2021-05-06 17:58:52 -04:00
Sridhar Ratnakumar
1c2d30351d
Add markdown parsing helper (#24)
add helpers to parse markdown; `parseMarkdownWithFrontMatter` and `parseMarkdown`
2021-05-06 15:44:53 -04:00
Sridhar Ratnakumar
1cdd072f86 Rename mount function 2021-05-06 10:33:17 -04:00
Sridhar Ratnakumar
0448f0b4ed Update nixpkgs (lvar is in nixpkgs now) 2021-05-06 09:10:27 -04:00
Sridhar Ratnakumar
7aeb55c4b4
Update README.md 2021-05-05 11:38:40 -04:00
Sridhar Ratnakumar
6c28042ee7 Fix logging source 2021-05-01 12:24:05 -04:00
Sridhar Ratnakumar
5386bf7ca9 Add mountFileSystemOnLVar 2021-05-01 12:07:58 -04:00
Sridhar Ratnakumar
2f0bb39b6a tailwind: appHead before twind 2021-04-29 14:50:33 -04:00
Sridhar Ratnakumar
fe8a5c0a65
Update README.md 2021-04-28 00:07:35 -04:00
Sridhar Ratnakumar
6af3405718
Add video demo 2021-04-27 21:43:31 -04:00