diff --git a/examples/quickstart/default.nix b/examples/quickstart/default.nix index ba559ec..bd763e0 100644 --- a/examples/quickstart/default.nix +++ b/examples/quickstart/default.nix @@ -12,6 +12,7 @@ # can do an [invoke(plural)(...):yay!] type thing # one can invoke stuff inline too without doing this. markdollPlugins = [ - (mkMarkdollPlugin "plural" ../plugins/plural.sh) + (mkMarkdollPlugin "plural" ./plugins/plural.sh) + (mkMarkdollPlugin "tools" ./plugins/tools.py) ]; } \ No newline at end of file diff --git a/examples/quickstart/pluginTests.doll b/examples/quickstart/pluginTests.doll index e270d45..d5c9aa3 100644 --- a/examples/quickstart/pluginTests.doll +++ b/examples/quickstart/pluginTests.doll @@ -4,4 +4,9 @@ title: plugin tests &plural plugin [invoke(plural)(aki):hi this one is aki] - [invoke(plural)(noe):hi this one is noe] \ No newline at end of file + + [invoke(plural)(noe):hi this one is noe] + + hellorld [invoke(tools)(flip):hellorld] + + dolldolldoll|llodllodllod [invoke(tools)(flip):dolldolldoll|llodllodllod] \ No newline at end of file diff --git a/examples/quickstart/plugins/inline-example.sh b/examples/quickstart/plugins/inline-example.sh deleted file mode 100755 index 896824c..0000000 --- a/examples/quickstart/plugins/inline-example.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -flip() { - LC_ALL=C LC_ALL=en_US.UTF-8 rev <"/dev/stdin" -} - -main() { - case $1 in - flip) flip;; - esac -} - -main $1 \ No newline at end of file diff --git a/examples/plugins/plural.sh b/examples/quickstart/plugins/plural.sh similarity index 82% rename from examples/plugins/plural.sh rename to examples/quickstart/plugins/plural.sh index 4b33135..f77f8ae 100755 --- a/examples/plugins/plural.sh +++ b/examples/quickstart/plugins/plural.sh @@ -1,6 +1,7 @@ #!/bin/sh alterName=$1 +message=$(<"/dev/stdin") cat << EOF