a crappy fastapi development server that can preprocess TS, TSX, SCSS, etc... on any GET request. this way, you can reference "*.ts", "*.scss", etc... files directly in your html files
typescript, tsx, and jsx to javascript
default signature: (".ts" | ".tsx" | ".jsx") -> ".js"
done, but still need to include ".jsx" to the list of default exts in .router.apply_route_ts
typescript, tsx, jsx, and javascript to static html
default signature: (".html.ts" | ".html.tsx" | ".html.js" | ".html.jsx") -> ".html"
the source files *.html.(ts|tsx|js|jsx) must export default your_html_string_variable
for example:
// my_html_generator.tsimport{title,year,pages,author}from"./my_book.ts"constgenerated_html=`<!DOCTYPE html><html lang="en"> <head><title>${title}</title></head> <body><p>the book ${title} was published in ${year} by ${author}</p></body></html>`exportdefaultgenerated_html
preprocessors supported by esbuild
such as scss, and modular css, etc...
add tailwind esbuild plugin to list of configurable plugins in "builders/deno_lts_esbuild.ts"
will need to first test if tailwind plugin works with deno + solidjs + tsx