Class VanCompiler
java.lang.Object
dev.vanengine.core.VanCompiler
Pipeline: VanParser → VanResolver → render (with VanSignalGen for client JS).
Lifecycle: no init() or close() needed — pure Java, no subprocess.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompile with an explicit files map (for classpath resources or in-memory).Compile a .van file, returning cached results when no file in the dependency tree has changed.parseImportPaths(String content) Extract component import paths from .van file content.Render with data — compiles and binds data into final HTML.voidsetGlobalName(String globalName)
-
Constructor Details
-
VanCompiler
public VanCompiler()
-
-
Method Details
-
setGlobalName
-
getGlobalName
-
compile
Compile a .van file, returning cached results when no file in the dependency tree has changed.- Parameters:
vanFile- path to the .van entry filebasePath- base directory for resolving relative imports- Returns:
- compiled HTML string
- Throws:
IOException
-
compile
Compile with an explicit files map (for classpath resources or in-memory). -
renderToString
-
parseImportPaths
-