Vorrichtung is a lightweight framework for decorating server-side generated HTML. It's based on Re-frame and Reagent.
Because:
- You have a server-side generated HTML and I want to decorated it. And
- You think that write front-end with Re-frame is a great idea.
Vorrichtung helps you decorating server-side generated HTML. Typically you have an administration generated with rich MVC framework (like Django or Ruby on Rails) and it's needed to enrich the UI. The administration is full of auto-completes, modal windows, AJAX/client-side validations etc. With Vorrichtung you creates a component (Reagent component) and register it via a CSS selector. When Vorrichtung starts iterates over all registered components and try to find matching element. When the element is present it renders the component. That's all. Anything after that is a normal Re-frame flow.
Because Vorrichtung only delegates rendering to Reagent you can easily reuse your components from SPA. Sure, you can use Vorrichtung with yours old UI components written in Javascript (Google Closure Library etc.).
- Call
lein dev
to start demo app.
lein ancient
- shows outdated dependencies and plugins
lein test