calingen.contrib.compilers.download
¶
Implementation of CompilerProvider
that provides the source code of the rendered layout as file download.
This compiler is able to handle all types of layouts, meaning it supports all layout source languages (as no real compilation is performed).
This makes this compiler a suitable choice for the "default"
compiler in
django-calingen’s settings (see CALINGEN_COMPILER
).
Warning
The file extension of the (downloadable) file is determined by using the
layout’s layout_type
attribute (see
calingen.interfaces.plugin_api.LayoutProvider
) in combination with
calingen.contrib.compilers.download.compiler.SOURCE_TYPE_LOOKUP
.