Class: Metanorma::Plugin::Lutaml::LutamlPreprocessor
- Inherits:
-
BasePreprocessor
- Object
- Asciidoctor::Extensions::Preprocessor
- BasePreprocessor
- Metanorma::Plugin::Lutaml::LutamlPreprocessor
- Defined in:
- lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb
Overview
Preprocessor for EXPRESS schema formats (lutaml, lutaml_express, lutaml_express_liquid). Parses EXPRESS files via the lutaml/expressir gems, decorates remarks with relative path resolution, and renders Liquid templates with the EXPRESS-specific Liquid environment.
Constant Summary collapse
- EXPRESS_PREPROCESSOR_REGEX =
%r{ ^ # Start of line \[ # Opening bracket (?:\blutaml\b| # Match lutaml or \blutaml_express\b| # lutaml_express or \blutaml_express_liquid\b) # lutaml_express_liquid , # Comma separator (?<index_names>[^,]+)? # Optional index names ,? # Optional comma (?<context_name>[^,]+)? # Optional context name (?<options>,.*)? # Optional options \] # Closing bracket }x
Constants included from Utils
Method Summary
Methods inherited from BasePreprocessor
Methods included from Utils
create_liquid_environment, error_signature, load_express_from_folder, load_express_from_index, load_express_repo_from_cache, load_express_repo_from_path, load_express_repositories, notify_render_errors, parse_document_express_indexes, processed_lines, relative_file_path, render_liquid_string, save_express_repo_to_cache