summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim')
-rw-r--r--share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim b/share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim
new file mode 100644
index 0000000000..e9aef4611d
--- /dev/null
+++ b/share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim
@@ -0,0 +1,12 @@
+# This is just an example to get you started. Users of your library will
+# import this file by writing ``import %{ProjectName}/submodule``. Feel free to rename or
+# remove this file altogether. You may create additional modules alongside
+# this file as required.
+
+type
+ Submodule* = object
+ name*: string
+
+proc initSubmodule*(): Submodule =
+ ## Initialises a new ``Submodule`` object.
+ Submodule(name: "Anonymous")