abstract class AssetPipeline::FrameworkRenderer

Overview

Base class for all framework renderers

This abstract class defines the interface that all framework-specific renderers should implement. It ensures consistency across different framework implementations.

Defined in:

asset_pipeline/framework_registry.cr

Instance Method Summary

Instance methods inherited from class AssetPipeline::ScriptRenderer

analyze_code_complexity analyze_code_complexity, analyze_dependencies_with_suggestions : Hash(Symbol, Array(String)) analyze_dependencies_with_suggestions, cache_efficiency : Hash(String, Float64) cache_efficiency, cache_stats : Hash(String, Int32) cache_stats, clear_caches clear_caches, dependency_analyzer : DependencyAnalyzer | Nil dependency_analyzer, generate_development_report : String generate_development_report, generate_import_statements : String generate_import_statements, generate_script_content : String generate_script_content, get_import_suggestions : Array(String) get_import_suggestions, render_initialization_script : String render_initialization_script, uses_module_syntax? : Bool uses_module_syntax?, validate_configuration : Hash(String, Array(String)) validate_configuration

Constructor methods inherited from class AssetPipeline::ScriptRenderer

new(import_map : ImportMap, custom_javascript_block : String = "", enable_dependency_analysis : Bool = true) new

Instance Method Detail

def detect_framework_components : Array(String) #

Optional: Framework-specific controller/component detection


[View source]
def generate_framework_imports : String #

Optional: Framework-specific import statement generation


[View source]
def generate_framework_setup : String #

Optional: Framework-specific application setup


[View source]
def looks_like_framework_component?(name : String) : Bool #

Helper method to determine if an import looks like a framework component


[View source]
abstract def render_framework_initialization_script : String #

Each framework renderer must implement this method to provide framework-specific script rendering


[View source]