Module suggestions

Module suggestions 

Source
Expand description

Fuzzy matching and context-aware suggestions for template errors

This module provides intelligent suggestions when template errors occur, using Levenshtein distance for fuzzy matching and context extraction to help users fix common mistakes.

Structs§

Suggestion
Suggestion result with confidence scoring

Enums§

SuggestionCategory

Constants§

AVAILABLE_FILTERS
All registered filters in the engine
AVAILABLE_FUNCTIONS
All registered functions in the engine
CONTEXT_VARIABLES
Top-level context variables always available in templates

Functions§

extract_available_keys
Extract available keys from a JSON value at a given path
extract_filter_name
Extract filter name from error message
extract_function_name
Extract function name from error message
extract_variable_name
Extract variable name from error message
find_closest_matches
Find closest matches from a list of candidates
levenshtein
Calculate Levenshtein distance between two strings
suggest_available_properties
Suggest available properties when accessing undefined key
suggest_iteration_fix
Generate a type-specific hint for iteration errors
suggest_undefined_variable
Suggest corrections for an undefined variable
suggest_unknown_filter
Suggest corrections for an unknown filter
suggest_unknown_function
Suggest corrections for an unknown function