Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Beyond Compojure
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
ayato
November 10, 2015
Programming
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Beyond Compojure
ayato
November 10, 2015
More Decks by ayato
See All by ayato
マイクロサービス内で動くAPIをF#で書いている
ayato0211
1
1.7k
Clojureという言語が私逹にもたらしたもの
ayato0211
6
3.2k
3年間考え続けてきたWebアプリケーションにおけるテストの話
ayato0211
3
320
Re:REPL-Driven Development
ayato0211
3
1.4k
Meta Template Engine
ayato0211
2
1.2k
超変換! Hiccup data structure!!
ayato0211
2
690
About Integrant
ayato0211
0
620
Muscle Assert
ayato0211
0
340
Clojureを用いたWebアプリケーション開発
ayato0211
2
3.3k
Other Decks in Programming
See All in Programming
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
250
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
120
Event is what happens
moro
2
1.6k
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
110
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
2
130
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
1.4k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
430
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
190
最近”作らせてる” ローカルAIアプリの話
akit37
0
500
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
380
Vue Fes Japan の “作る側”に関わってみて
naokihaba
1
190
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
120
Featured
See All Featured
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Paper Plane
katiecoart
PRO
5
54k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Automating Front-end Workflow
addyosmani
1370
210k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
550
Building AI with AI
inesmontani
PRO
1
1.3k
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Documentation Writing (for coders)
carmenintech
77
5.6k
Deep Space Network (abreviated)
tonyrice
0
380
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Transcript
Beyond Compojure @_ayato_p
@_ayato_p
Compojure ͱ • ϧʔςΟϯάϥΠϒϥϦ • ಠࣗͷଋറػߏ • ϧʔτύϥϝʔλͷڧ੍ม • ϚΫϩͰϧʔςΟϯάఆٛ
• ؆୯ʹ͑Δ
͜Μͳײ͡ (ns example.routes (:require [compojure.core :refer [defroutes context GET POST]]))
(defroutes main-routes (GET "/" req (home)) (context "/user" req (GET "/" req (user-index)) (GET "/new" req (user-new)) (GET "/new" req (user-new-post))) (context "/user/:id" [id] (GET "/" req (user-show id)) (GET "/edit" req (user-edit id)) (POST "/edit" req (user-edit-post id))))
Ͱ...?
Πέͯͳ͍ • URI ͷੜ͕ग़དྷͳ͍ • ClojureScript Ͱ࠶ར༻ग़དྷͳ͍ • ֦ு͕͍͠ •
؆୯͚ͩͲγϯϓϧ͡Όͳ͍
ຊʹཉ͍͠ͷ?
ཉ͍͠ͷ • σʔλͱͯ͠ϧʔςΟϯάఆٛग़དྷΔ • URI ͷੜ͕ग़དྷΔ • ֦ு͕؆୯ • γϯϓϧͳͷ
ϧʔςΟϯάϥΠϒϥϦ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
σʔλͱͯ͠ఆٛग़དྷΔ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
֦ு͕؆୯ • Compojure • Moustache • RouteOne • Pedestal •
gudu • secretary • silk • fnhouse • bidi
bidi vs silk • ΄ͱΜͲಉ͡ • ΫΤϦʔύϥϝʔλ͖ URI ͷύʔεʹࠩ •
bidi αϙʔτͯ͠ͳ͍ • Έͷ https://carouselapps.com/2015/09/21/bidi-vs-silk/
bidi Λ͏
͋Ε͕͜͏એݴͰ͖Δ (ns example.routes) (def main-routes ["/" {"" :home "/user" {""
:user-index "/new" {:get :user-new :post :user-new-post}} ["/user/" [#"\d+" :id]] {"" :user-show "/edit" {:get :user-edit :post :user-edit-post}}}])
+α • ϋϯυϥʔΛఆٛ͢Δ • c.l.Keyword Λ֦ு͢Δ • ֤ϋϯυϥʔʹϝλσʔλΛՃ͢Δ http://qiita.com/ayato_p/items/8ed4688a4540491e87e0
·ͱΊ • Compojure ͚ͩ͡Όͳ͍ • Compojure ؆୯͚ͩͲউख͕ѱ͍ • bidi
silk ͷΑ͏ͳͷ͍͍͢