-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* EY-3728 Tom mal for notat * tillate brev-api i pdfgen
- Loading branch information
1 parent
5a8360b
commit 75f576f
Showing
4 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"tittel" : "En slags tittel", | ||
"payload" : [ | ||
{ | ||
"type" : "heading-three", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "En tittel" | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "paragraph", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "Med litt diverse tekst. Ikke mye spennende her. " | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "heading-three", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "Tittel over liste" | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "bulleted-list", | ||
"children" : [ | ||
{ | ||
"type" : "list-item", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "Her" | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "list-item", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "er" | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "list-item", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "en" | ||
} | ||
] | ||
}, | ||
{ | ||
"type" : "list-item", | ||
"children" : [ | ||
{ | ||
"type" : "paragraph", | ||
"text" : "liste" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="no"> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
{{> eypdfgen/partials_v2/style}} | ||
<title>{{ tittel }}</title> | ||
</head> | ||
<body> | ||
|
||
<div id="header"> | ||
<img class="navlogo" src="{{ image "Navlogo.png" }}"/> | ||
|
||
<h1 class="title"> | ||
{{ tittel }} | ||
</h1> | ||
</div> | ||
|
||
<div class="container"> | ||
{{#each payload}} | ||
{{#eq type "heading-two"}} | ||
{{#each this.children}} | ||
<h2>{{ this.text }}</h2> | ||
{{/each}} | ||
{{/eq}} | ||
|
||
{{#eq type "heading-three"}} | ||
{{#each this.children}} | ||
<h3>{{ this.text }}</h3> | ||
{{/each}} | ||
{{/eq}} | ||
|
||
{{#eq type "paragraph"}} | ||
{{#each this.children}} | ||
{{#eq this.type "bulleted-list"}} | ||
<ul> | ||
{{#each this.children}} | ||
<li>{{this.text}}</li> | ||
{{/each}} | ||
</ul> | ||
{{else}} | ||
<p>{{this.text}}</p> | ||
{{/eq}} | ||
{{/each}} | ||
{{/eq}} | ||
|
||
{{#eq type "bulleted-list"}} | ||
{{#each this.children}} | ||
<ul> | ||
{{#each this.children}} | ||
<li>{{this.text}}</li> | ||
{{/each}} | ||
</ul> | ||
{{/each}} | ||
{{/eq}} | ||
{{/each}} | ||
</div> | ||
|
||
</body> | ||
</html> |