File tree Expand file tree Collapse file tree
Tests/Test.CSF.Zpt.Integration
Test data/LoadPluginTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > Load plugin test 5</ title >
4+ </ head >
5+ < body >
6+ < div >
7+ < ul >
8+ < li >
9+ < div >
10+ < p > Content from the macro, before the slot-filler</ p >
11+ < p >
12+ This is slot content from macro 'test2'.
13+ The item name is < strong > One</ strong > .
14+ </ p >
15+ < p > Content from the macro, after the slot-filler</ p >
16+ </ div >
17+ </ li >
18+ < li >
19+ < div >
20+ < p > Content from the macro, before the slot-filler</ p >
21+ < p >
22+ This is slot content from macro 'test2'.
23+ The item name is < strong > Two</ strong > .
24+ </ p >
25+ < p > Content from the macro, after the slot-filler</ p >
26+ </ div >
27+ </ li >
28+ < li >
29+ < div >
30+ < p > Content from the macro, before the slot-filler</ p >
31+ < p >
32+ This is slot content from macro 'test2'.
33+ The item name is < strong > Three</ strong > .
34+ </ p >
35+ < p > Content from the macro, after the slot-filler</ p >
36+ </ div >
37+ </ li >
38+
39+ </ ul >
40+ </ div >
41+
42+ </ body >
43+ </ html >
Original file line number Diff line number Diff line change 1+ < html >
2+ < head >
3+ < title > Load plugin test 5</ title >
4+ </ head >
5+ < body >
6+ < div >
7+ < ul tal:define ="myMacro here/Documents/test05/macros/test2 ">
8+ < li tal:repeat ="item here/Items ">
9+ < div tal:define ="doc load:myMacro "
10+ tal:replace ="structure doc ">
11+ This content should be replaced by the rendered document
12+ </ div >
13+ </ li >
14+ </ ul >
15+ </ div >
16+ < div class ="macros " tal:condition ="nothing ">
17+ < div metal:define-macro ="test1 ">
18+ < p > Content from the macro, before the slot-filler</ p >
19+ < p metal:define-slot ="first "> Default slot content here</ p >
20+ < p > Content from the macro, after the slot-filler</ p >
21+ </ div >
22+ < div metal:extend-macro ="test1 "
23+ metal:define-macro ="test2 ">
24+ < p > This is content from a different macro</ p >
25+ < p metal:fill-slot ="first ">
26+ This is slot content from macro 'test2'.
27+ The item name is < strong tal:content ="item/Name | default "> Empty</ strong > .
28+ </ p >
29+ < p > This is content from a different macro</ p >
30+ </ div >
31+ </ div >
32+ </ body >
33+ </ html >
Original file line number Diff line number Diff line change 264264 <None Include =" Test data\LoadPluginTests\ExpectedOutputs\test04.html" />
265265 <None Include =" Test data\ZptIntegrationTests\SourceDocuments\issue-221_form_test.html" />
266266 <None Include =" Test data\ZptIntegrationTests\ExpectedOutputs\issue-221_form_test.html" />
267+ <None Include =" Test data\LoadPluginTests\SourceDocuments\test05.html" />
268+ <None Include =" Test data\LoadPluginTests\ExpectedOutputs\test05.html" />
267269 </ItemGroup >
268270 <ItemGroup >
269271 <ProjectReference Include =" ..\..\CSF.Zpt\CSF.Zpt.csproj" >
You can’t perform that action at this time.
0 commit comments