We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc651cd + 616b81b commit eaec538Copy full SHA for eaec538
README.md
@@ -73,6 +73,27 @@ pushy should work with any routing library:
73
(pushy/start! history)
74
```
75
76
+[Silk](https://github.com/DomKM/silk)
77
+
78
+```clojure
79
+(ns foo.core
80
+ (:require [domkm.silk :as silk]
81
+ [pushy.core :as pushy]))
82
83
+(def state (atom {}))
84
85
+(def app-routes
86
+ (silk/routes [[:foo [["/foo"]]]]))
87
88
+(defn set-page! [match]
89
+ (swap! state assoc :page match))
90
91
+(def history
92
+ (pushy/pushy set-page! (partial silk/arrive app-routes)))
93
94
+(pushy/start! history)
95
+```
96
97
### goog.history.HTML5History methods
98
99
You can set the history state manually by calling the `set-token!` method. This will call the `dispatch` fn on a successfully matched path.
0 commit comments