- Static compiler with STRC pattern (Static Template Resolution with
Compartmentalized Layers)
- Template syntax: { } interpolation, { s-for }, { s-if/s-elif/s-else
}
- File types: .strata, .compiler.sts, .service.sts, .api.sts, .sts,
.scss
- CLI tools: strata dev, strata build, strata g (generators)
- create-strata scaffolding CLI with Pokemon API example
- Dev server with WebSocket HMR (Hot Module Replacement)
- Documentation: README, ARCHITECTURE, CHANGELOG, CONTRIBUTING,
LICENSE
19 lines
647 B
Lua
19 lines
647 B
Lua
-- Strata file type detection for NeoVim
|
|
vim.filetype.add({
|
|
extension = {
|
|
strata = "html", -- Templates: HTML syntax
|
|
sts = "typescript", -- Pure logic: TypeScript
|
|
["compiler.sts"] = "typescript", -- Compiler: TypeScript
|
|
["service.sts"] = "typescript", -- Service: TypeScript
|
|
["api.sts"] = "typescript", -- API contracts: TypeScript
|
|
},
|
|
pattern = {
|
|
[".*%.compiler%.sts"] = "typescript",
|
|
[".*%.service%.sts"] = "typescript",
|
|
[".*%.api%.sts"] = "typescript",
|
|
},
|
|
})
|
|
|
|
-- Optional: Add custom syntax highlighting or treesitter config
|
|
-- vim.treesitter.language.register("html", "strata")
|