Граф коммитов

46 Коммитов

Автор SHA1 Сообщение Дата
Ian Bicking b5dcde98b1 Commit rest of files forgotten in last commit 2011-08-31 14:57:30 -05:00
Ian Bicking f50d4123c1 Remove use of deprecated process.mixin, replace with util/mixin.js:mixin() 2011-08-31 14:56:04 -05:00
Simon Willison f99a38f9e6 Fixed extractPost method 2010-03-19 09:19:51 +00:00
Anders Hellerup Madsen cf87e4e086 Merge remote branch 'simonw/master' 2010-03-10 00:53:41 +01:00
Anders Hellerup Madsen fc68e545cc marked up links 2010-03-09 16:31:57 -07:00
Anders Hellerup Madsen fc97ff0a56 Added documentation for the templatesystem.
Also some bugs with errorhandling in the rendering chain have been fixed.
2010-03-10 00:17:56 +01:00
Simon Willison bc4af74e62 Merge branch 'ahem' 2010-03-07 11:14:09 +00:00
Anders Hellerup Madsen 3ccef9d7cc Implemented url and regroup tags 2010-02-25 23:56:02 +01:00
Anders Hellerup Madsen abad5beb35 cleaned up templatesystem + implemented load, include and a few more tags
- fixed require paths
- moved required statements around to prevent double loading in some modules (loader)
- organized tags, filter and nodes better so they can be changed with load tag
- general cleanup
- added load_and_render() function to loader
2010-02-25 01:26:44 +01:00
Anders Hellerup Madsen fd449ebb0f Removed wait() and promises completly.
The template rendering engine has been rewritten to use the the node.js
standard callback(error, result) pattern. I have removed all use of the wait()
function, from the loader module.
2010-02-24 01:43:01 +01:00
Anders Hellerup Madsen 8ce43c411a Fixed djangode and template system for node v1.30 2010-02-23 22:26:25 +01:00
Simon Willison 8b4391545d Added BSD license 2010-02-16 11:07:07 +00:00
Anders Hellerup Madsen aa72208496 Merge branch 'master' of git://github.com/simonw/djangode
Conflicts:
	template/loader.js
	template_example.js
2010-02-15 23:16:36 +01:00
Anders Hellerup Madsen e889bcfa17 Fix require statements to avoid duplicate loading 2010-02-15 23:13:21 +01:00
Simon Willison 7c0e8db72d Merge branch 'ahem'
Conflicts:
	djangode.js
2010-02-15 11:45:43 +00:00
Simon Willison ab445f8319 Added an option to load templates using a callback, avoiding the wait() call 2010-02-15 11:44:05 +00:00
Leroy Campbell b47adbbcd5 Added a missing comma in line 3. 2010-02-15 18:14:34 +08:00
Dmitry Rojkov ab1a7c4229 In the respond() method in a function call sendBody() specified encoding "UTF8", otherwise non-ASCII characters (such as Cyrillic) are not displayed. 2010-02-15 18:13:58 +08:00
Leroy Campbell cca6552e46 Updated for Node version 0.1.25 2010-02-15 18:13:29 +08:00
Anders Hellerup Madsen 87c7718cf9 Add timesince/until and urlize/urlizetrunc filters 2010-01-22 00:53:42 +01:00
Anders Hellerup Madsen ece9831ef3 Improved date/time filter+ variable in filter args 2010-01-21 00:17:44 +01:00
Anders Hellerup Madsen 0b8c50ceea Added a couple of filters 2010-01-18 02:15:48 +01:00
Anders Hellerup Madsen 5e764095ba Merge branch 'master' of git://github.com/artisonian/djangode 2010-01-17 23:14:24 +01:00
Anders Hellerup Madsen e7d9719e38 Added missing files 2010-01-17 23:13:44 +01:00
Anders Hellerup Madsen b89c926da4 Fixed small bugs with autoescape 2010-01-17 22:59:04 +01:00
Anders Hellerup Madsen ee90dee41e Implemented escaping 2010-01-17 22:33:43 +01:00
Leroy Campbell 505589a644 Updated for Node version 0.1.25 2010-01-15 11:59:45 -05:00
Anders Hellerup Madsen a59f589494 Blocks works with multiple leves of extend 2010-01-15 01:07:36 +01:00
Anders Hellerup Madsen 658506a970 Implemented block and extends tags 2010-01-14 23:51:29 +01:00
Anders Hellerup Madsen 61c3ed0380 More filters 2009-12-28 19:05:19 +01:00
Anders Hellerup Madsen baf18d604c Added more filters. 2009-12-14 00:49:39 +01:00
Anders Hellerup Madsen b5c437e5b8 more filters + more tests 2009-12-12 22:53:28 +01:00
Anders Hellerup Madsen 177519a09e Cleaned + Implemented half of default filters. 2009-12-12 22:51:22 +01:00
Anders Hellerup Madsen 4900633af1 Actually committed filters... 2009-12-12 01:31:38 +01:00
Anders Hellerup Madsen e9c3115623 Implemented filter handling.
Added a FilterExpression class that can resolve variable names and apply filter to the value. It can also accept comments so it can be used later when the "filter" tag should be implemented.
2009-12-12 01:14:28 +01:00
Anders Hellerup Madsen 117fff51a6 Implemented basic handling of filters.
TODO:
    - Filters should not accept arguments without double qoutes
    - Implement more filters
    - Implement more tags
    - Implement a more stable template rendering framework that ties better into djangode
2009-12-10 02:06:14 +01:00
Anders Hellerup Madsen e66d765aa1 First version of a django compatible template system. Parser and tokenizer are somewhat usefull.
Text literals and variable tags (TODO: filters and escaping) and variable scoping are implemented.

Template tags implemented:
    For
    If

TODO:
 - parsing and executing is done outside of a scope that djangode can track, which means the server dies on errors instead of reporting 500.
 - implement filters and escaping of variables
 - implement more standard django tags
 - implement more standard django filters
2009-12-09 02:53:28 +01:00
simonw 9218725b8e 2009-11-27 17:12:28 -07:00
Pelle Wessman f805510abc Fix for the previous too quick utf8-fix 2009-11-28 08:05:40 +08:00
Pelle Wessman 817fb6b22d Fix the content length for UTF8 content. Used trick found at http://dt.in.th/2008-09-16.string-length-in-bytes.html 2009-11-28 08:05:40 +08:00
Pelle Wessman d5a6c46305 The encoding needs to be specified when sending the body as well - otherwise it defaults to "ascii" 2009-11-28 08:05:40 +08:00
Simon Willison 312ff2a46f Added example.js and bulked out the readme a bit 2009-11-20 10:06:16 +00:00
Simon Willison cba86e0a8a Added dj.serve shortcut for starting a server - saves you from having to require http and sys modules in your own application 2009-11-20 10:01:28 +00:00
Simon Willison f2d37301e7 Added redirect(res, location) method 2009-11-19 15:25:40 +00:00
Simon Willison 8755867f50 First version, developed for nodecast 2009-11-19 15:02:24 +00:00
Simon Willison 9cee56d037 readme 2009-11-19 10:19:03 +00:00