This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#29: Jinja2: Allow to use variables in filenames (--template-filenames)
- Loading branch information
1 parent
a1e7dc5
commit 9f5a2e3
Showing
5 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/internal-samples/jinja2-filename-templating/lyrics---song_name--.txt.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Hijo del pueblo, te oprimen cadenas, | ||
y esa injusticia no puede seguir; | ||
si tu existencia es un mundo de penas | ||
antes que esclavo prefiere morir. | ||
En la batalla, la hiena fascista. | ||
por nuestro esfuerzo sucumbirá; | ||
y el pueblo entero, con los anarquistas, | ||
hará que triunfe la libertad. | ||
|
||
Trabajador, no más sufrir, | ||
el opresor ha de sucumbir. | ||
Levántate, pueblo leal, | ||
al grito de revolución social. | ||
Fuerte unidad de fe y de acción | ||
producirá la revolución. | ||
Nuestro pendón uno ha de ser: | ||
sólo en la unión está el vencer. |
16 changes: 16 additions & 0 deletions
16
test/internal-samples/jinja2-filename-templating/lyrics2---song2_name--.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Negras tormentas agitan los aires, | ||
nubes oscuras nos impiden ver. | ||
Aunque nos espere el dolor y la muerte, | ||
contra el enemigo nos llama el deber. | ||
|
||
El bien más preciado | ||
es la libertad, | ||
hay que defenderla con fe y con valor. | ||
Alta la bandera revolucionaria, | ||
que llevará al pueblo a la emancipación | ||
|
||
En pie el pueblo obrero a la batalla, | ||
hay que derrocar a la reacción. | ||
¡A las Barricadas! | ||
¡A las Barricadas! | ||
por el triunfo de la Confederación. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters