[CODE] valid frab xml with hard coded events from golang structs
This commit is contained in:
parent
7c7ea7f914
commit
7e5fbbe254
3 changed files with 70 additions and 51 deletions
|
@ -1,39 +1,40 @@
|
|||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<!-- Made with love by csv2frab -->
|
||||
<schedule>
|
||||
{{with .Conf}}<conference>
|
||||
<title>{{.Title}}</title>
|
||||
<start>{{.Start}}</start>
|
||||
<end>{{.End}}</end>
|
||||
<days>{{.Days}}</days>
|
||||
<timeslot_duration>0:05</timeslot_duration>
|
||||
<acronym></acronym>
|
||||
</conference>{{end}}
|
||||
|
||||
{{range .Days}}
|
||||
<day index="{{.Index}}" date="{{.Date}}" start="{{.Start}}" end="{{.End}}">
|
||||
{{range .Rooms}}
|
||||
<room name="{{.Name}}">
|
||||
{{range .Events}}
|
||||
<event id="{{.ID}}" guid="{{.GUID}}">
|
||||
<room>{{.Room}}</room>
|
||||
<title>{{.Title}}</title>
|
||||
<date>{{.Date}}</date>
|
||||
<start>{{.Start}}</start>
|
||||
<duration>{{.Duration}}</duration>
|
||||
|
||||
<persons>{{range .Persons}}<person id="{{.ID}}">{{.Name}}</person>{{end}}</persons>
|
||||
<abstract></abstract>
|
||||
<description></description>
|
||||
<slug></slug>
|
||||
<type></type>
|
||||
<language></language>
|
||||
<recording><license></license><optout>false</optout></recording>
|
||||
<subtitle></subtitle>
|
||||
<track></track>
|
||||
<links></links>
|
||||
</event>
|
||||
<version>1.0</version>
|
||||
{{with .Conf}}<conference>
|
||||
<acronym>WH</acronym>
|
||||
<title>{{.Title}}</title>
|
||||
<start>{{.Start}}</start>
|
||||
<end>{{.End}}</end>
|
||||
<days>{{.Days}}</days>
|
||||
<timeslot_duration>00:05</timeslot_duration>
|
||||
</conference>{{end}}
|
||||
{{range .Days}}<day index='{{.Index}}' date='{{.Date}}' start='{{.Start}}' end='{{.End}}'>
|
||||
{{range .Rooms}}<room name='{{.Name}}'>
|
||||
{{range .Events}}<event guid='{{.GUID}}' id='{{.ID}}'>
|
||||
<date>{{.Date}}</date>
|
||||
<start>{{.Start}}</start>
|
||||
<duration>{{.Duration}}</duration>
|
||||
<room>{{.Room}}</room>
|
||||
<title>{{.Title}}</title>
|
||||
<persons>{{range .Persons}}
|
||||
<person id='{{.ID}}'>{{.Name}}</person>{{end}}
|
||||
</persons>
|
||||
<language>{{.Language}}</language>
|
||||
<type>Talk</type>
|
||||
<slug></slug>
|
||||
<url></url>
|
||||
<recording><license></license><optout>false</optout></recording>
|
||||
<subtitle></subtitle>
|
||||
<track></track>
|
||||
<abstract></abstract>
|
||||
<description></description>
|
||||
<links></links>
|
||||
</event>
|
||||
{{end}}
|
||||
</room>
|
||||
{{end}}
|
||||
</day>
|
||||
{{end}}
|
||||
</room>
|
||||
{{end}}
|
||||
</day>
|
||||
{{end}}
|
||||
</schedule>
|
Loading…
Add table
Add a link
Reference in a new issue