mirror of https://github.com/patacrep/patacrep.git
Oliverpool
9 years ago
30 changed files with 215 additions and 90 deletions
@ -1 +1 @@ |
|||
{image: (( content.argument ))} |
|||
{image: (( content.argument|search_image ))} |
|||
|
@ -1 +1 @@ |
|||
{partition: ((content.argument))} |
|||
{partition: ((content.argument|search_partition))} |
|||
|
@ -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,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', 'tag'] *) |
|||
(* if key in metadata -*) |
|||
{(( key )): (( metadata[key] ))} |
|||
(* endif *) |
|||
(* endfor *) |
|||
(* if 'cov' in metadata -*) |
|||
{(( 'cov' )): (( metadata['cov'].argument|search_image ))} |
|||
(* endif *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
@ -0,0 +1 @@ |
|||
((- content.pretty_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 @@ |
|||
<div class="comment">(( content.argument ))</div> |
@ -0,0 +1,31 @@ |
|||
<div(( " " -)) |
|||
class="chord-diagram"(( " " -)) |
|||
data-shift=" |
|||
(*- if content.basefret -*) |
|||
((content.basefret)) |
|||
(*- else -*) |
|||
0 |
|||
(*- endif *) |
|||
((- '" ' -)) |
|||
data-frets=" |
|||
(*- for fret in content.frets -*) |
|||
(* if fret is none -*) |
|||
x |
|||
(*- else -*) |
|||
(( fret -)) |
|||
(* endif -*) |
|||
(* endfor -*) |
|||
((- '" ' -)) |
|||
(* if content.fingers -*) |
|||
data-fingers=" |
|||
(*- for finger in content.fingers -*) |
|||
(* if finger is none -*) |
|||
- |
|||
(*- else -*) |
|||
(( finger -)) |
|||
(* endif -*) |
|||
(* endfor -*) |
|||
((- '" ' -)) |
|||
(* endif -*) |
|||
data-name="(( content.pretty_key ))"(( " " -)) |
|||
></div> |
@ -0,0 +1,3 @@ |
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
@ -0,0 +1,3 @@ |
|||
|
|||
ERROR : Template not found for "(( content.__class__.__name__ ))". See the logs for details. |
|||
|
@ -0,0 +1 @@ |
|||
<div class="guitar_comment">(( content.argument ))</div> |
@ -0,0 +1 @@ |
|||
<img src="(( content.argument|search_image ))"> |
@ -0,0 +1,3 @@ |
|||
(* for item in content.line -*) |
|||
(( render(item) )) |
|||
(*- endfor *) |
@ -0,0 +1,3 @@ |
|||
(* if 'cov' in metadata -*) |
|||
<img src="(( metadata['cov'].argument|search_image ))"><br> |
|||
(* endif *) |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1 @@ |
|||
<a class="song-partition" href="(( content.argument|search_partition ))">((content.argument))</a> |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,5 @@ |
|||
<pre class="tablature"> |
|||
(* for content in content.content *) |
|||
((- content )) |
|||
(* endfor *) |
|||
</pre> |
@ -0,0 +1,6 @@ |
|||
<p class="(( content.type ))"> |
|||
(*- for line in content.lines -*) |
|||
(* if not loop.first *)<br>(* endif -*) |
|||
(( render(line) )) |
|||
(* endfor -*) |
|||
</p> |
@ -0,0 +1 @@ |
|||
(( content.value )) |
@ -0,0 +1,5 @@ |
|||
(* include 'song_header' *) |
|||
|
|||
<div class="song_content"> |
|||
(* include 'song_body' *) |
|||
</div> |
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
@ -0,0 +1,30 @@ |
|||
(*- for title in titles -*) |
|||
(* if loop.first *) |
|||
<h1 class="song-title">(( title ))</h1> |
|||
(* else *) |
|||
<h2 class="song-title">(( title ))</h2> |
|||
(* endif *) |
|||
(* endfor -*) |
|||
|
|||
(*- for author in authors -*) |
|||
<h2 class="song-artist">(( author[1] ))(( author[0] ))</h2> |
|||
(* endfor *) |
|||
|
|||
|
|||
(*- for key in ['album', 'copyright', 'tag', 'columns', 'capo'] *) |
|||
(* if key in metadata -*) |
|||
<span class="song-(( key ))">(( key|capitalize )): (( metadata[key] ))</span><br/> |
|||
(* endif *) |
|||
(* endfor *) |
|||
|
|||
(* if language is defined -*) |
|||
<span class="song-language">Language: (( language ))</span><br> |
|||
(* endif *) |
|||
|
|||
(* include 'content_metadata_cover' *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(* include 'content_define_list' *) |
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
Loading…
Reference in new issue