ark::js::AbstractModuleTransformer
Defined in header “ark/js/abstract_module_transformer.hh”.
This class represents a generic module importer. It can be used to implement customized transformers for loading in arbitrary fileformats and turning them into javascript.
Methods
-
~AbstractModuleTransformer()
Virtual destructor. -
std::string transform(const std::string & filename, const std::string & content)
Called to process the given path. Returns Javascript-compatible code that can be loaded. Filename is an optional parameter that can be useful for error messages.