Class VanCompiler
java.lang.Object
dev.vanengine.core.VanCompiler
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Compile with an explicit files map (for classpath resources).Compile a .van file, returning cached results when the file hasn't changed.voidinit()parseImportPaths(String content) Extract component import paths from .van file content.voidsetGlobalName(String globalName)
-
Constructor Details
-
VanCompiler
public VanCompiler()
-
-
Method Details
-
setGlobalName
-
getGlobalName
-
init
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
compile
Compile a .van file, returning cached results when the file hasn't changed.- Parameters:
vanFile- path to the .van entry filebasePath- base directory for resolving relative imports- Returns:
- compiled HTML string
- Throws:
IOException
-
compile
public VanCompiler.CompiledResult compile(String entryPath, Map<String, String> files) throws IOExceptionCompile with an explicit files map (for classpath resources).- Throws:
IOException
-
parseImportPaths
-