Torpor v1 Release
Torpor v1 has been released and it has a new website. Click around to see what you can do with it!
Features
Torpor is a full-stack JavaScript framework that aims for simplicity and completeness. It has the following features:
- Compose your views with JavaScript, HTML and CSS
- Components are functions with script, markup and styles
- In-markup JavaScript logic with
@if,@for,@switch,@try, and@awaitkeywords- And
@replace,@const,@console,@debugger,@functionand@html
- And
- Runtime reactivity via proxies that can be used in any JavaScript file
- Scoped styles, two-way binding, child components and more
- An accessible, unstyled component library
- A full-featured site and app framework
What's new
If you've been using a pre-release version, you can now use the following features:
- Error boundaries:
@try/@catch, and a top-level@errorblock - Async getters:
$asyncwith the@await/withboundary, plus$pendingand$refresh - External event streams:
$streamwithfromServer,fromWebSocketandfromElement
And you will need to remove any old @await (promise) { ... } then (v) { ... } catch (e) { ... }
controls by putting the promise in an $async getter,
reading it inside @await ... with, and catching
errors with @try — see Async and
Errors.