Skip to content

Commit 22d4718

Browse files
committed
Prepare debops__tpl_macros.j2 upstreaming
1 parent 04d02e3 commit 22d4718

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

templates/etc/apache2/sites-available/debops__tpl_macros.j2

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{# vim: foldmarker=[[[,]]]:foldmethod=marker
2-
# Copyright [[[
32
# Commonly used set of macros in DebOps.
43
# It can be included in repositories as needed.
5-
# Changes to this file should go upstream: FIXME
4+
# Changes to this file should go upstream: https://github.com/debops/debops-playbooks/blob/master/templates/debops__tpl_macros.j2
5+
#
6+
# Copyright [[[
7+
# =============
68
#
7-
# Copyright (C) 2014-2016 Maciej Delmanowski <[email protected]>
9+
# Copyright (C) 2014-2017 Maciej Delmanowski <[email protected]>
810
# Copyright (C) 2015-2017 Robin Schneider <[email protected]>
911
# Copyright (C) 2014-2017 DebOps https://debops.org/
1012
#
@@ -21,6 +23,27 @@
2123
#
2224
# You should have received a copy of the GNU General Public License
2325
# along with DebOps. If not, see https://www.gnu.org/licenses/.
26+
#
27+
# ]]]
28+
#
29+
# Usage [[[
30+
# =========
31+
#
32+
# Copy the template file into your ./templates/ path of a role where it fits
33+
# best. You can/might need to use symlinks to make the macros available from
34+
# different paths in your ./templates/ hierarchy.
35+
#
36+
# Make sure to retain the filename of this file so that automatic updates of
37+
# this file can be implemented.
38+
#
39+
# To use the macros in your own template, this file needs to be included like so:
40+
#
41+
# {% import 'debops__tpl_macros.j2' as debops__tpl_macros with context %}
42+
#
43+
# Then you can start using the macros like this:
44+
#
45+
# {{ debops__tpl_macros.indent(some_content, 4) }}
46+
#
2447
# ]]] #}
2548

2649
{% macro get_yaml_list_for_elem(list_or_elem) %}{# [[[ #}

0 commit comments

Comments
 (0)