mirror of https://github.com/patacrep/patacrep.git
Oliverpool
9 years ago
3 changed files with 36 additions and 34 deletions
@ -1,35 +1,3 @@ |
|||
(* if language is defined -*) |
|||
{language: (( language ))} |
|||
(* endif *) |
|||
(* if metadata.columns is defined -*) |
|||
{columns: (( metadata.columns ))} |
|||
(* endif *) |
|||
(* if metadata.capo is defined -*) |
|||
{capo: (( metadata.capo ))} |
|||
(* endif *) |
|||
(* include 'song_header' *) |
|||
|
|||
(*- for title in titles -*) |
|||
{title: (( title ))} |
|||
(* endfor -*) |
|||
|
|||
(*- for author in authors -*) |
|||
{artist: (( author[1] ))(( author[0] ))} |
|||
(* endfor *) |
|||
|
|||
(*- for key in ['album', 'copyright', 'cov', 'tag'] *) |
|||
(* if key in metadata -*) |
|||
{(( key )): (( metadata[key] ))} |
|||
(* endif *) |
|||
(* endfor *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
|||
|
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
|||
(* include 'song_body' *) |
|||
|
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
@ -0,0 +1,31 @@ |
|||
(* if language is defined -*) |
|||
{language: (( language ))} |
|||
(* endif *) |
|||
(* if metadata.columns is defined -*) |
|||
{columns: (( metadata.columns ))} |
|||
(* endif *) |
|||
(* if metadata.capo is defined -*) |
|||
{capo: (( metadata.capo ))} |
|||
(* endif *) |
|||
|
|||
(*- for title in titles -*) |
|||
{title: (( title ))} |
|||
(* endfor -*) |
|||
|
|||
(*- for author in authors -*) |
|||
{artist: (( author[1] ))(( author[0] ))} |
|||
(* endfor *) |
|||
|
|||
(*- for key in ['album', 'copyright', 'cov', 'tag'] *) |
|||
(* if key in metadata -*) |
|||
{(( key )): (( metadata[key] ))} |
|||
(* endif *) |
|||
(* endfor *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
Loading…
Reference in new issue