0add0720d5
Add langmap_dir setting.
...
Allows users to specify the path to the langmap dir for
source-highlight.
2017-04-23 13:57:49 +01:00
fb4d99d62b
Add as_str() and as_ref() convenience methods to SettingsBag.
...
as_ref() does the same as operator[], but it's nicer to
type when settings bag is a pointer.
2017-04-23 13:54:06 +01:00
75674525de
Response keeps a ptr to the SettingsBag now.
2017-04-23 13:40:48 +01:00
26aa51c3be
Add a redis_db setting to the ini file.
2017-04-21 23:26:01 +01:00
b03c3198b8
Make a SettingsBag class that wraps the ini settings.
...
Easily allows to have default values for options
that are not specified in the loaded ini file.
2017-04-21 23:10:16 +01:00
1bc059bfe4
Export the list of supported languages to mustache.
2017-04-21 22:18:43 +01:00
73c3d2f04d
Use partials in html.
2017-04-21 19:01:13 +01:00
00aa06282d
Set the html root from the config file.
2017-04-18 20:10:36 +01:00
1870829ec2
Import lib mstch and put it to good use.
...
Response classes are given a chance to modify the
dictionary that is later sent to mstch.
2017-04-18 18:40:42 +01:00
680f13e1f6
Refactoring.
...
IncRedis is now held by Response, if requested by the base class.
Response objects know their names, and they use it to load
the html (soon to be mustache) data from disk.
Main only prepares a factory, the factory then instantiates
the actual Response.
The code now correctly serves index.cgi when the request is /.
Remove kakoune's safe_ptr from inside src and put an updated
one in lib/kakoune.
2017-04-15 03:18:33 +01:00
da2484b0d4
Use base_uri in the response
2017-04-11 19:36:18 +01:00
ef9e74c473
Redirect to the new page if pastie was successful.
2017-04-07 00:31:06 +01:00
4354f4bf29
Add GPL3 licence.
2017-04-06 23:35:06 +01:00
81cf36de22
Rename CGIEnv to cgi::Env
2017-04-06 23:02:17 +01:00
98d98fc4ba
Step up work on responses.
2017-04-06 21:27:38 +01:00
fea5b738df
First commit
2017-04-04 20:58:40 +01:00