aboutsummaryrefslogtreecommitdiff
path: root/examples/colorful
diff options
context:
space:
mode:
Diffstat (limited to 'examples/colorful')
-rw-r--r--examples/colorful/README.md8
-rw-r--r--examples/colorful/colorful.tm2
-rw-r--r--examples/colorful/modules.ini2
3 files changed, 10 insertions, 2 deletions
diff --git a/examples/colorful/README.md b/examples/colorful/README.md
index 04a221e3..faded9b1 100644
--- a/examples/colorful/README.md
+++ b/examples/colorful/README.md
@@ -54,8 +54,14 @@ colorful [--help] [texts...] [--by-line] [--files ...]
`colorful` can also be used as a Tomo library:
+```ini
+# modules.ini
+[colorful]
+version=v1.0
+```
+
```tomo
-use colorful_v1.0
+use colorful
$Colorful"
@(blue:Welcome to the @(bold:party)!)
diff --git a/examples/colorful/colorful.tm b/examples/colorful/colorful.tm
index 270efe8c..9a8bbbba 100644
--- a/examples/colorful/colorful.tm
+++ b/examples/colorful/colorful.tm
@@ -7,7 +7,7 @@ HELP := "
CSI := "\033["
-use patterns_v1.0
+use patterns
lang Colorful
convert(text:Text -> Colorful)
diff --git a/examples/colorful/modules.ini b/examples/colorful/modules.ini
new file mode 100644
index 00000000..fb52a859
--- /dev/null
+++ b/examples/colorful/modules.ini
@@ -0,0 +1,2 @@
+[patterns]
+version=v1.0