Skip to content

Commit

Permalink
Do not include a <script> block if it isn't strictly necessary.
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@4473 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Mar 14, 2010
1 parent b61ccf6 commit bdf857d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CTK/Plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def __call__ (self, key, modules, **kwargs):
render = plugin.Render()

output = '<div id="%s">%s</div>' %(plugin.id, render.html)
output += HTML_JS_ON_READY_BLOCK %(render.js)
if render.js:
output += HTML_JS_ON_READY_BLOCK %(render.js)

return Postprocess(output)

Expand Down

0 comments on commit bdf857d

Please sign in to comment.