Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin.support.pygments.lexers.templates.JavascriptDjangoLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.templates.JavascriptDjangoLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.templates.JavascriptDjangoLexer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def analyse_text

Static Public Attributes

string name = 'JavaScript+Django/Jinja'
list aliases
list alias_filenames = ['*.js']
list mimetypes

Detailed Description

Subclass of the `DjangoLexer` that highlights unlexed data with the
`JavascriptLexer`.

Definition at line 1141 of file templates.py.


Constructor & Destructor Documentation

Definition at line 1158 of file templates.py.

01158 
01159     def __init__(self, **options):
01160         super(JavascriptDjangoLexer, self).__init__(JavascriptLexer, DjangoLexer,
01161                                                     **options)


Member Function Documentation

Definition at line 1162 of file templates.py.

01162 
01163     def analyse_text(text):
01164         return DjangoLexer.analyse_text(text) - 0.05
01165 


Member Data Documentation

Definition at line 1150 of file templates.py.

Initial value:
['js+django', 'javascript+django',
               'js+jinja', 'javascript+jinja']

Definition at line 1148 of file templates.py.

Initial value:
['application/x-javascript+django',
                 'application/x-javascript+jinja',
                 'text/x-javascript+django',
                 'text/x-javascript+jinja',
                 'text/javascript+django',
                 'text/javascript+jinja']

Definition at line 1151 of file templates.py.

string MoinMoin.support.pygments.lexers.templates.JavascriptDjangoLexer.name = 'JavaScript+Django/Jinja' [static]

Definition at line 1147 of file templates.py.


The documentation for this class was generated from the following file: