mirror of https://github.com/patacrep/patacrep.git
Louis
10 years ago
50 changed files with 239 additions and 102 deletions
@ -0,0 +1,9 @@ |
|||
((- content.key -)) |
|||
(* if content.alteration *)(( content.alteration ))(* endif -*) |
|||
(* if content.modifier *)((content.modifier))(* endif -*) |
|||
(* if content.addnote *)((content.addnote))(* endif -*) |
|||
(* if content.basskey -*) |
|||
/ |
|||
((- content.basskey -)) |
|||
(* if content.bassalteration *)(( content.bassalteration ))(* endif -*) |
|||
(* endif -*) |
@ -0,0 +1,6 @@ |
|||
[ |
|||
(*- for chord in content.chords -*) |
|||
(* if not loop.first *) (* endif -*) |
|||
(( render(chord) -)) |
|||
(* endfor -*) |
|||
] |
@ -0,0 +1 @@ |
|||
{comment: (( content.argument ))} |
@ -0,0 +1,25 @@ |
|||
{define: (( render(content.key) )) |
|||
(*- if content.basefret *) |
|||
base-fret ((content.basefret)) |
|||
(*- endif *) |
|||
frets |
|||
(*- for string in content.frets -*) |
|||
(( " " -)) |
|||
(*- if string is none -*) |
|||
x |
|||
(*- else -*) |
|||
(( string -)) |
|||
(*- endif -*) |
|||
(*- endfor -*) |
|||
(* if content.fingers *) |
|||
fingers |
|||
(*- for finger in content.fingers -*) |
|||
(( " " -)) |
|||
(* if finger is none -*) |
|||
- |
|||
(*- else -*) |
|||
(( finger -)) |
|||
(* endif -*) |
|||
(* endfor -*) |
|||
(* endif -*) |
|||
} |
@ -0,0 +1,3 @@ |
|||
|
|||
ERROR : Template not found for "(( content.__class__.__name__ ))". See the logs for details. |
|||
|
@ -0,0 +1 @@ |
|||
{guitar_comment: (( content.argument ))} |
@ -0,0 +1 @@ |
|||
{image: (( content.argument ))} |
@ -0,0 +1,3 @@ |
|||
(* for item in content.line -*) |
|||
(( render(item) )) |
|||
(*- endfor *) |
@ -0,0 +1,2 @@ |
|||
|
|||
|
@ -0,0 +1 @@ |
|||
{partition: ((content.argument))} |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,5 @@ |
|||
{start_of_tab} |
|||
(* for foo in content.content *) |
|||
(( foo )) |
|||
(* endfor *) |
|||
{end_of_tab} |
@ -0,0 +1,5 @@ |
|||
{start_of_(( content.type ))} |
|||
(* for line in content.lines *) |
|||
(( render(line) )) |
|||
(* endfor *) |
|||
{end_of_(( content.type ))} |
@ -0,0 +1 @@ |
|||
(( content.value )) |
@ -0,0 +1,34 @@ |
|||
(* 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', 'vcov', '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 *) |
@ -1,3 +1,3 @@ |
|||
|
|||
ERROR : Template not found for \verb+(( content.__class__))+. See the logs for details. |
|||
ERROR : Template not found for \verb+(( content.__class__.__name__ ))+. See the logs for details. |
|||
|
|||
|
@ -1 +1 @@ |
|||
|
|||
{language: english} |
|||
|
@ -1,2 +1,3 @@ |
|||
{language: english} |
|||
{title: A directive} |
|||
|
|||
|
@ -1 +1,2 @@ |
|||
{language: english} |
|||
|
|||
|
@ -1 +1,2 @@ |
|||
{language: english} |
|||
|
|||
|
@ -1,5 +1,8 @@ |
|||
{language: english} |
|||
{title: and a directive} |
|||
|
|||
|
|||
|
|||
{start_of_verse} |
|||
A lot of new lines |
|||
{end_of_verse} |
|||
|
@ -1,2 +1,3 @@ |
|||
{language: english} |
|||
{title: A directive} |
|||
|
|||
|
@ -1 +1 @@ |
|||
|
|||
{language: english} |
|||
|
@ -1 +1,2 @@ |
|||
{language: english} |
|||
|
|||
|
@ -1,5 +1,8 @@ |
|||
{language: english} |
|||
{title: and a directive} |
|||
|
|||
|
|||
|
|||
{start_of_verse} |
|||
A lot of new lines |
|||
{end_of_verse} |
|||
|
@ -0,0 +1,2 @@ |
|||
{language: english} |
|||
|
Loading…
Reference in new issue