Add a new compile-time statement to import models and handlers from other module files.
This feature requires new syntax and semantics to be implemented in the parser and WXModule file logic.
A new analysis pass should also be added to detect circular dependencies.
Below is a suggestion for import syntax:
import { Todo, renderTodo } from "./todos"
include "../common.webx"
It would be nice if module file paths could be located automatically based on the standardized file extensions .webx and .wx.
Also the ./ could be omitted.
Add a new compile-time statement to import models and handlers from other module files. This feature requires new syntax and semantics to be implemented in the parser and
WXModule
file logic. A newanalysis
pass should also be added to detect circular dependencies.Below is a suggestion for import syntax:
It would be nice if module file paths could be located automatically based on the standardized file extensions
.webx
and.wx
. Also the./
could be omitted.