File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Static Site Generator for Elixir.
6
6
7
7
- [x] Good code and browser reloading on file change
8
8
- [x] Easy to use the current Node.js JS/CSS tooling
9
+ - [x] Extensions
9
10
- [ ] Ability to work with "data" (either dynamic data or static files)
10
11
- [ ] Handles stuff like RSS, sitemap, SEO.
11
12
@@ -18,7 +19,7 @@ This package can be installed by adding `tableau` to your list of dependencies i
18
19
``` elixir
19
20
def deps do
20
21
[
21
- {:tableau , " ~> 0.2 " }
22
+ {:tableau , " ~> 0.3 " }
22
23
]
23
24
end
24
25
```
@@ -84,7 +85,7 @@ defmodule MySite.AboutPage do
84
85
85
86
import Temple
86
87
87
- def render (assigns) do
88
+ def template (assigns) do
88
89
temple do
89
90
span class: " text-red-500 font-bold" do
90
91
" i'm a super cool and smart!"
@@ -121,7 +122,7 @@ defmodule YourApp.Layouts.App do
121
122
122
123
import Temple
123
124
124
- def render (assigns) do
125
+ def template (assigns) do
125
126
temple do
126
127
" <!DOCTYPE html>"
127
128
@@ -136,8 +137,7 @@ defmodule YourApp.Layouts.App do
136
137
137
138
body class: " font-sans" do
138
139
main class: " container mx-auto px-2" do
139
- slot :default
140
- end
140
+ render (@inner_content )
141
141
end
142
142
end
143
143
153
153
154
154
### JS/CSS
155
155
156
- You can arbitrarily start other build tools as "watchers". This is inspired by the way [ Phoenix does it] ( TODO ) .
156
+ You can arbitrarily start other build tools as "watchers". This is inspired by the way Phoenix does it.
157
157
158
158
``` elixir
159
159
# config/config.exs
You can’t perform that action at this time.
0 commit comments