From ecc0c5be6d125fcf7cb0ef594f7ae627ea34243c Mon Sep 17 00:00:00 2001 From: Vinyl-Davyl Date: Mon, 30 Sep 2024 03:48:26 -0700 Subject: [PATCH] update: added blank(new) template sample --- src/samples/blank.ts | 21 +++++++++++++++++++++ src/samples/index.ts | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 src/samples/blank.ts diff --git a/src/samples/blank.ts b/src/samples/blank.ts new file mode 100644 index 0000000..fa5541d --- /dev/null +++ b/src/samples/blank.ts @@ -0,0 +1,21 @@ +const MODEL = `namespace hello@1.0.0 + +@template +concept NewTemplate { + o String exampleField +}`; + +const TEMPLATE = `> This is a blank template for users to create their own content. + +### Welcome to your new template {{exampleField}}! + +You can add your content here. +`; + +const DATA = { + "$class": "hello@1.0.0.NewTemplate", + "exampleField": "Your value here" +}; + +const NAME = 'New (Blank)'; +export { NAME, MODEL, DATA, TEMPLATE }; \ No newline at end of file diff --git a/src/samples/index.ts b/src/samples/index.ts index 6a6c7cb..09fe125 100644 --- a/src/samples/index.ts +++ b/src/samples/index.ts @@ -10,6 +10,7 @@ import * as formula from "./formula"; import * as clausecondition from "./clausecondition"; import * as invitation from "./invitation"; import * as announcement from "./announcement"; +import * as blank from "./blank"; export type Sample = { NAME: string; @@ -28,6 +29,7 @@ export const SAMPLES: Array = [ clausecondition, invitation, announcement, + blank, list, optional, markdown,