From 7514bd355d109c8cab953d152e7f06a03687ed95 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 4 Oct 2022 20:48:36 +0200 Subject: move shared templating code to common.m4 --- opdracht-1/opdracht-1.m4 | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'opdracht-1') diff --git a/opdracht-1/opdracht-1.m4 b/opdracht-1/opdracht-1.m4 index 59b85eb..fbb1a89 100644 --- a/opdracht-1/opdracht-1.m4 +++ b/opdracht-1/opdracht-1.m4 @@ -1,37 +1,5 @@ changequote(`{{', `}}') - -define({{include_sql}}, {{ -```sql -include({{$1.sql}}) -``` -}}) - -define({{q_norm}}, {{ -## Opdracht $1 - -Query: -include_sql({{q$1}}) -}}) - -define({{q_with_output}}, {{ -## Opdracht $1 - -Query: -include_sql({{t$1}}) - -Output: -include({{t$1.md}}) -}}) - -define({{q_with_test}}, {{ -q_norm($1) - -Test query: -include_sql({{t$1}}) - -Output: -include({{t$1.md}}) -}}) +include({{../common.m4}}) # Practicum 1 -- cgit v1.2.3