Mercurial > public > sg101
comparison gpp/comments/forms.py @ 6:b6263ac72052
Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 22:50:56 +0000 |
parents | dbd703f7d63a |
children | f408971657b9 |
comparison
equal
deleted
inserted
replaced
5:63696b279e35 | 6:b6263ac72052 |
---|---|
64 | 64 |
65 return new | 65 return new |
66 | 66 |
67 class Media: | 67 class Media: |
68 css = { | 68 css = { |
69 'all': ('js/markitup/skins/markitup/style.css', | 69 'all': settings.GPP_THIRD_PARTY_CSS['markitup'], |
70 'js/markitup/sets/markdown/style.css') | |
71 } | 70 } |
72 js = ( | 71 js = settings.GPP_THIRD_PARTY_JS['jquery'] + \ |
73 'js/jquery-1.2.6.min.js', | 72 settings.GPP_THIRD_PARTY_JS['markitup'] + \ |
74 'js/comments.js', | 73 ('js/comments.js', ) |
75 'js/markitup/jquery.markitup.pack.js', | |
76 'js/markitup/sets/markdown/set.js', | |
77 ) |