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-2/opdracht-2.m4 | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'opdracht-2') diff --git a/opdracht-2/opdracht-2.m4 b/opdracht-2/opdracht-2.m4 index 627cb36..e733be3 100644 --- a/opdracht-2/opdracht-2.m4 +++ b/opdracht-2/opdracht-2.m4 @@ -1,39 +1,7 @@ changequote(`{{', `}}') +include({{../common.m4}}) -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}}) -}}) - -# Practicum 1 +# Practicum 2 q_with_test(1) q_with_test(2) -- cgit v1.2.3