Retax-Server
This is the server side of the retax. It could create 2 kind of express middlewares:
- static rendering: this one simply return a static Html page compliant with retax-client
- dynamic rendering: this one calls retax-core to create an app server side and render it
How it works?
I assume that you will use retax to create a retax app. If you still want to bootstrap a server app manually, you could do the following.
Common code: the app
;; ; ;
Rendering middleware
;; ;;; // you could create a top-level IoC container if you don't want to do the following yourself;;;;; ; ; bootstrapper.configserverConfig; ; app.usecookieParser;app.usebootstrapper.bootstrap; app.listen3000;
FAQ
I don't understand how this library is built
Check builder and builder-ts-library
Typescript support
This project is shipped with typescript typings. If you are using typescript@^1.6, you don't have to do anything, it will detect the definition types automatically.
License
MIT License (MIT)