Skip to content

Commit

Permalink
update: added blank(new) template sample
Browse files Browse the repository at this point in the history
Signed-off-by: Vinyl-Davyl <[email protected]>
  • Loading branch information
Vinyl-Davyl committed Sep 30, 2024
1 parent 460922f commit 4b33bfe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/samples/blank.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const MODEL = `namespace [email protected]
@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": "[email protected]",
"exampleField": "Your value here"
};

const NAME = 'New (Blank)';
export { NAME, MODEL, DATA, TEMPLATE };
2 changes: 2 additions & 0 deletions src/samples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -28,6 +29,7 @@ export const SAMPLES: Array<Sample> = [
clausecondition,
invitation,
announcement,
blank,
list,
optional,
markdown,
Expand Down

0 comments on commit 4b33bfe

Please sign in to comment.