mirror of https://github.com/patacrep/patacrep.git
Louis
9 years ago
52 changed files with 393 additions and 219 deletions
@ -1 +1 @@ |
|||||
{image: (( content.argument ))} |
{image: (( content.argument|search_image ))} |
||||
|
@ -1 +1 @@ |
|||||
{partition: ((content.argument))} |
{partition: ((content.argument|search_partition))} |
||||
|
@ -1,5 +1,11 @@ |
|||||
|
(*- if content.type != 'verse' -*) |
||||
{start_of_(( content.type ))} |
{start_of_(( content.type ))} |
||||
(* for line in content.lines *) |
(* for line in content.lines *) |
||||
(( render(line) )) |
(( render(line) )) |
||||
(* endfor *) |
(* endfor *) |
||||
{end_of_(( content.type ))} |
{end_of_(( content.type ))} |
||||
|
(* else -*) |
||||
|
(*- for line in content.lines -*) |
||||
|
(( render(line) )) |
||||
|
(* endfor -*) |
||||
|
(*- endif -*) |
||||
|
@ -1,35 +1,3 @@ |
|||||
(* if language is defined -*) |
(* include 'song_header' *) |
||||
{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 -*) |
(* include 'song_body' *) |
||||
{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 *) |
|
||||
|
@ -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' *) |
@ -1 +1 @@ |
|||||
\image{(( content.argument|search_image(path, config) ))} |
\image{(( content.argument|search_image ))} |
||||
|
@ -1 +1 @@ |
|||||
\lilypond{ ((- content.argument|search_image(path, config) -)) } |
\lilypond{ ((- content.argument|search_partition -)) } |
||||
|
@ -0,0 +1,3 @@ |
|||||
|
(* for item in content -*) |
||||
|
(( render(item) )) |
||||
|
(* endfor *) |
@ -0,0 +1,5 @@ |
|||||
|
{language: english} |
||||
|
{define: G frets 0 2 3 2} |
||||
|
{define: D7 frets 2 2 2 3 fingers 1 1 1 2} |
||||
|
{define: G frets 3 2 0 0 0 3} |
||||
|
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -} |
@ -0,0 +1,4 @@ |
|||||
|
{define: G frets 0 2 3 2} |
||||
|
{define: D7 frets 2 2 2 3 fingers 1 1 1 2} |
||||
|
{define: G frets 3 2 0 0 0 3} |
||||
|
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -} |
@ -0,0 +1,14 @@ |
|||||
|
\selectlanguage{english} |
||||
|
|
||||
|
\beginsong{}[ |
||||
|
by={ |
||||
|
}, |
||||
|
] |
||||
|
|
||||
|
\utab{G}{0232} |
||||
|
\utab{D7}{2223:1112} |
||||
|
\gtab{G}{320003} |
||||
|
\gtab{A#+2}{7:0133XX:012300} |
||||
|
|
||||
|
|
||||
|
\endsong |
Loading…
Reference in new issue