9d456bba9b
Add argument in new optional block in templates midd to set delimiters
2015-10-29 20:33:01 -02:00
5a29107f3b
Add Last-Modified header when serving markdown and templates
2015-10-29 11:06:35 +02:00
f9bc74626d
Address various lint and gocyclo warnings. Fixes #253
2015-10-11 16:28:02 -04:00
bc2feece4b
Moved test files to testdata folder.
...
Changed the tests accordingly.
2015-07-23 09:35:46 +02:00
f536bc94b2
Added the Context to the browse directive
...
Moved the Context type to middleware and exported it.
Users can use .Include and others in browse directive templating
Created test for the templates directive.
2015-07-17 20:07:24 +02:00
c82d7c2dd2
templates: Better error handling for missing files
2015-07-06 23:37:27 -06:00
915172e9ef
templates: Close files after done including them
2015-07-01 11:36:37 -06:00
7a42e60bcb
templates: Support for nested include files
...
i.e. included files are also parsed as templates
2015-06-30 18:21:18 -06:00
47717fee88
Expanded index file support to other middlewares ( fixes #27 )
2015-05-05 15:50:42 -06:00
a9064a7871
templates: Changed .RemoteAddr to .IP and stripped port
2015-05-05 15:49:22 -06:00
e4fdf171c7
More refactoring - nearly complete
2015-05-04 11:49:49 -06:00
ff344535ba
Added some godoc
2015-04-27 10:56:57 -06:00
c10d2e0d45
Make the thing compile
2015-04-21 22:30:47 -06:00
1a8f753303
Meh.
2015-04-21 21:41:58 -06:00
bdd145b0de
Better error handling when executing templates
2015-04-21 21:36:30 -06:00
6a32de4b47
Use text/template because html shouldn't be escaped for this
2015-04-18 12:28:22 -06:00
f5d0ed5b1c
More template love
2015-04-18 11:31:59 -06:00
55801b48ec
More template functions
2015-04-18 11:08:41 -06:00
3ec870cb56
Templates middleware with "include" functionality
2015-04-18 09:57:51 -06:00