calingen.contrib.compilers.copy_paste.compiler
¶
The actual implementation of the compiler.
Module Contents¶
Classes¶
Do not compile sources, but just return them in a view for copy/paste. |
- class calingen.contrib.compilers.copy_paste.compiler.CopyPasteCompiler¶
Bases:
calingen.interfaces.plugin_api.CompilerProvider
Do not compile sources, but just return them in a view for copy/paste.
- title = CopyPasteCompiler¶
- classmethod get_response(source, *args, **kwargs)¶
Get the compiler’s HTTP response.
This is the compiler’s main interface to other components of the app.
It should be used to actually trigger the compilation of the provided source and then return a valid Django Response object.
- Parameters:
source (str) – The source as provided by
LayoutProvider.render()
.- Return type:
Notes
This method is called from
CompilerView's get() method
with an additional keyword argumentlayout_type
, exposing thelayout_type
attribute of the layout.