/
TODO
56 lines (43 loc) · 1.98 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Features to implement:
_ move javascript to set userpane and messages to Network.Gitit?
_ revamp caching.
new plan (see stashed):
cache should base64-encode the rawPathInfo from waiRequest
so it's on a per-request basis
in a separate directory we need to track which cached pages
are derived from which filestore paths, so we can expire them
when the filestore paths change. use symlinks?
_ preview in edit?
when you edit, you should be able to switch back and forth to a preview
tab. when you activate the preview tab it should render the current
content of the edit pane.
_ plugins/interface [started]
_ plugin loading
_ plugins in config file
_ sample plugins: abc notation?
_ config file [started]
x make Front Page, Help configurable
_ implement page locking (no edit, no delete) as in gitit
_ command-line option to specify config file? (but what about rest of config dir?)
_ site initialization [started]
_ explicit 'init' command? or wizard?
_ user logins/accounts
_ user pages (linked from history)
_ documentation
_ README
_ man page produced from README
_ Michael Snoyman suggests that instead of using a static subsite,
we do something like the following:
The only recommendation that comes to mind
would be to put some of the hard-coded static paths used in
makeDefaultLayout into the HasGitit typeclass, with sensible defaults.
That would theoretically make it much easier for users to override. In
the specific case of jQuery, you could use the existing YesodJquery
class from yesod-form. In general, the approach we take for these kinds
of typeclasses is to have methods like:
siteLogo :: master -> Either Text (Route master)
That way, the user can load the information from the master site
datatype if desired (which in turn means it can be in a config file),
and the `Either Text Route` lets the user either specify some external
URL or a type-safe URL.
Note: this applies to robots.txt and favicon.ico as well.