mirror of https://github.com/patacrep/patacrep.git
Oliverpool
9 years ago
17 changed files with 92 additions and 0 deletions
@ -0,0 +1 @@ |
|||||
|
((- content.chord -)) |
@ -0,0 +1,6 @@ |
|||||
|
<span class="chord"> |
||||
|
(*- for chord in content.chords -*) |
||||
|
(* if not loop.first *) (* endif -*) |
||||
|
(( render(chord) -)) |
||||
|
(* endfor -*) |
||||
|
</span> |
@ -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 @@ |
|||||
|
|
@ -0,0 +1 @@ |
|||||
|
{partition: ((content.argument))} |
@ -0,0 +1 @@ |
|||||
|
|
@ -0,0 +1,5 @@ |
|||||
|
<pre class="tablature"> |
||||
|
(* for content in content.content *) |
||||
|
((- content )) |
||||
|
(* endfor *) |
||||
|
</pre> |
@ -0,0 +1,5 @@ |
|||||
|
<p class="(( content.type ))"> |
||||
|
(*- for line in content.lines -*) |
||||
|
(( render(line) )) |
||||
|
(* endfor -*) |
||||
|
</p> |
@ -0,0 +1 @@ |
|||||
|
(( content.value )) |
@ -0,0 +1,3 @@ |
|||||
|
(* include 'song_header' *) |
||||
|
|
||||
|
(* 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