Version: dev

reject_template_imports_pre_v08

Stable function · Versions and migration

Tier: stable · Kind: function · Topic: Versions and migration

JuliaTypeScriptPythonRustGo
reject_template_imports_pre_v08rejectTemplateImportsPreV08reject_template_imports_pre_v08reject_template_imports_pre_v08RejectTemplateImportsPreV08

Julia

reject_template_imports_pre_v08(raw_data)
reject_template_imports_pre_v08(raw_data)

expression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm: 0.8.0; files declaring an earlier version that carry any of them are rejected with template_import_version_too_old (esm-spec §9.6.5). Mirrors reject_expression_templates_pre_v04 for the §9.7 constructs.

Source

TypeScript

function rejectTemplateImportsPreV08(view: unknown): void

expression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm: 0.8.0; files declaring an earlier version that carry any of them are rejected with template_import_version_too_old (esm-spec §9.6.5). Mirrors rejectExpressionTemplatesPreV04 for the §9.7 constructs.

Source

Python

reject_template_imports_pre_v08(view: Any) -> None

Reject the §9.7 constructs in files declaring esm < 0.8.0.

expression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm: 0.8.0; files declaring an earlier version that carry any of them are rejected with template_import_version_too_old (esm-spec §9.6.5). Mirrors reject_expression_templates_pre_v04 for the §9.7 constructs.

Source

Rust

pub fn reject_template_imports_pre_v08(view: &Value) -> Result<(), ExpressionTemplateError>

expression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm: 0.8.0; files declaring an earlier version that carry any of them are rejected with template_import_version_too_old (esm-spec §9.6.5). Mirrors reject_expression_templates_pre_v04 for the §9.7 constructs.

Source · Rust docs

Go

func RejectTemplateImportsPreV08(view map[string]any) error

RejectTemplateImportsPreV08 rejects the §9.7 constructs in files declaring esm < 0.8.0: expression_template_imports, top-level expression_templates (template-library files), and metaparameters arrive at esm 0.8.0; files declaring an earlier version that carry any of them are rejected with template_import_version_too_old (esm-spec §9.6.5). Mirrors RejectExpressionTemplatesPreV04 for the §9.7 constructs.

Source · Go docs