prestancedesign / inertia-clojure Goto Github PK
View Code? Open in Web Editor NEWA Clojure adapter for Inertia.js
Home Page: https://inertia.prestance-design.com/
License: Eclipse Public License 1.0
A Clojure adapter for Inertia.js
Home Page: https://inertia.prestance-design.com/
License: Eclipse Public License 1.0
Is it possible to send a 404 response AND render an Page? I'd like to render a custom 404 page whenever the user goes to an undefined route. And I'd like to not have to setup stuff specifically for this, apart from my Inertia client.
I could not find any examples, so I'm creating an issue here.
Just been wondering if there are plans around enhancing native clojure support. In particular stuff like say supporting EDN/Transit for data exchange. That would reduce the need for js/interop, have consistent data defs, qualified kw's, etc etc . Obviously the inertia server stuff is dead simple, but it seems like one would need to wrap/reimplement goodish chunks of the core Inertia and Intertia-react libs on the client
This isn't really a bug per-se, but solutions will really help DX. I just hacked up the following for now in a reagent client. will obviously need to extend it to handle props, etc
(defonce cururl (atom nil))
(defn before-load
[]
(reset! cururl (.. js/window -location -href)))
(defn mount-reload
[]
(d/render [#'app] el)
(.setTimeout js/window
(fn []
(.visit Inertia @cururl
#js {:method "get"}))
1))
(defn after-load
[]
(mount-reload))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.