Contents
JavaScript Parser
Description
The JavaScript parser allows you to have JavaScript code rendered nicely inside Moin's code blocks.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.0 |
1.5 |
||
n.a |
n.a |
1.9 |
MoinMoin >= 1.9 has a built-in javascript parser (based on pygments, see HelpOnParsers). |
Installation
For general installation instructions, see ParserMarket/InstallingParsers. This parser requires no special dependencies, such as outside Python libraries.
Usage
To use this parser, simply put #!javascript after the beginning of the code block.
Example
{{{#!javascript alert("Hello World!"); }}}
Copyright
This parser is copyrighted by C.K. Wong
License
This parser is released under the terms of the GNU GPL.
Discussion
To get this running with MoinMoin 1.7.2 (and may be 1.7 generally) the import statement has to be altered to:
from MoinMoin.parser._ParserBase import ParserBase