[wiki] ajout de deux scripts pour pouvoir inliner du javascript
darcs-hash:20091109025359-bd074-d12e66abb2f71dbffb9cbc35413a91353073ac87.gz
This commit is contained in:
parent
c541996784
commit
f0da55bf97
3 changed files with 67 additions and 1 deletions
9
wiki/macro/JavaScript.py
Executable file
9
wiki/macro/JavaScript.py
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from MoinMoin.wikiutil import escape
|
||||
|
||||
def execute(macro, text):
|
||||
macro.request.write(
|
||||
'\n<script type="text/javascript" src="%s"></script>\n' % escape(text, 1))
|
||||
return None
|
Loading…
Add table
Add a link
Reference in a new issue