@@ -6,12 +6,13 @@ defmodule Tableau.DocumentTest.About do
6
6
def __tableau_type__ , do: :page
7
7
def __tableau_parent__ , do: InnerLayout
8
8
def __tableau_permalink__ , do: "/about"
9
+ def __tableau_extra__ , do: [ yo: "lo" ]
9
10
10
11
EEx . function_from_string (
11
12
:def ,
12
13
:template ,
13
14
~g'''
14
- <div class ="<%= @class %>">
15
+ <div id ="<%= @yo %>">
15
16
hi
16
17
</div>
17
18
''' html ,
@@ -27,6 +28,7 @@ defmodule Tableau.DocumentTest.Index do
27
28
def __tableau_type__ , do: :page
28
29
def __tableau_parent__ , do: InnerLayout
29
30
def __tableau_permalink__ , do: "/"
31
+ def __tableau_extra__ , do: [ ]
30
32
31
33
EEx . function_from_string (
32
34
:def ,
42
44
43
45
defmodule Tableau.DocumentTest.InnerLayout do
44
46
import Tableau.Strung
45
- import Tableau.Document.Helper , only: [ render: 2 ]
47
+ import Tableau.Document.Helper , only: [ render: 1 ]
46
48
require EEx
47
49
alias Tableau.DocumentTest.RootLayout
48
50
@@ -54,7 +56,7 @@ defmodule Tableau.DocumentTest.InnerLayout do
54
56
:template ,
55
57
~g'''
56
58
<div id="inner-layout">
57
- <%= render(@inner_content, class: "text-red" ) %>
59
+ <%= render(@inner_content) %>
58
60
</div>
59
61
''' html ,
60
62
[ :assigns ]
@@ -98,8 +100,7 @@ defmodule Tableau.DocumentTest do
98
100
{ "head" , [ ] , [ ] } ,
99
101
{ "body" , [ ] ,
100
102
[
101
- { "div" , [ { "id" , "inner-layout" } ] ,
102
- [ { "div" , [ { "class" , "text-red" } ] , [ "\n hi\n " ] } ] }
103
+ { "div" , [ { "id" , "inner-layout" } ] , [ { "div" , [ { "id" , "lo" } ] , [ "\n hi\n " ] } ] }
103
104
] }
104
105
] }
105
106
]
0 commit comments