summaryrefslogtreecommitdiff
path: root/share/bash/template/files.sh
blob: 50c935d57f28441aa512a798411994b85fdd04a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Store files embedded in the markdown input.

files_new() {
    dict_new _files
}

files_set() {
    dict_set _files "$1" "$2"
}

files_get() {
    dict_get _files "$1"
}


# Decode a base64 encoded string.

decode_base64() {
    echo "$1" | base64 -d
}