How danioso/gulp-inc works
Main Components
a. Input Layer:
• Source files (HTML, Markdown, etc.)
• Include directive syntax (#= include /path/to/file.md)
b. Processing Pipeline:
• gulp-inc Plugin Core (central component)
• File Reader Component
• Preprocessor Interface
• Content Injection Engine
c. Output Layer:
• Processed files
• Gulp Output Stream
Component Relationships
• Interface points where the plugin connects with Gulp's pipeline
Specific Elements
a. Input Section:
• Source Files (HTML)
• Directives
• External Files (MD, etc.)
b. Processing Section:
• File Detection (regex matcher)
• File Resolution (path resolver)
• Preprocessor Handler
• Content Injection
c. Output Section:
• Transformed Files
• Gulp Stream Output
Additional Details
Important aspects:
• Configuration options (regex, preprocessor)
• Stream processing indicators
• File transformation flow
• Integration points with external preprocessors