File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,30 @@ <h1 class="title">
2828 </ section >
2929 < section class ="section ">
3030 < div class ="container is-max-tablet ">
31- < p class ="is-size-5 ">
32- Define the structure of your application as pure data in
33- < strong > duct.edn</ strong > .
31+ < p class ="is-size-4 ">
32+ Duct defines the structure of your application as < strong > pure
33+ data</ strong > .
34+ </ p >
35+ < p >
36+ A data structure is far more powerful than a prescribed
37+ file tree from an application template.
3438 </ p >
3539 < pre class ="highlight "> < code class ="language-clojure "> {:system
3640 {:duct.module/logging {}
3741 :duct.module/sql {:migrations #duct/include "db/migrations.edn"}
3842 :duct.module/web {:features #{:api}
3943 :routes [["/items" #ig/ref :demo.routes/items]]}
4044 :demo.routes/items {:db #ig/ref :duct.database/sql}}}</ code > </ pre >
41- < p class ="is-size-6 ">
42- < strong > Modules</ strong > remove repetition while still allowing you
43- to override any data they add.
45+ </ div >
46+ </ section >
47+ < section class ="section ">
48+ < div class ="container is-max-tablet ">
49+ < p class ="is-size-4 ">
50+ Instead of templates and generators, Duct has < strong > modules</ strong > .
4451 </ p >
45- < p class =" is-size-6 " >
46- Use < strong > functions </ strong > and < strong > multimethods </ strong > to
47- define the behavior of your components .
52+ < p >
53+ Modules expand out into extra configuration that you can inspect and
54+ optionally override .
4855 </ p >
4956 < pre class ="highlight "> < code class ="language-clojure "> (ns demo.routes
5057 (:require [next.jdbc :as jdbc]))
Original file line number Diff line number Diff line change 3030
3131section .section {
3232 padding-top : 2rem ;
33+ padding-bottom : 0.5rem ;
3334}
3435
3536p {
3637 font-family : "Open Sans" , sans-serif;
37- margin-bottom : 1 em ;
38+ padding : 0.1 rem 0 ;
3839}
3940
4041pre .highlight {
You can’t perform that action at this time.
0 commit comments