Skip to content

Commit

Permalink
Some handlebars functions, not all
Browse files Browse the repository at this point in the history
  • Loading branch information
RoelantVos committed Aug 30, 2023
1 parent eb9c08c commit b75df69
Show file tree
Hide file tree
Showing 20 changed files with 883 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ This is {{space "Roelant"}} ...spaced out.

This replaces the a's in Roelant with an !: {{StringReplace "Roelant" "a" "!"}}

This adds brackets around the string vlue: {{stringwrap "Example" "[" "]"}}

{{!-- Demonstrating the array lookup --}}
{{#each dataObjectMappings}}
Working on mapping {{name}}
Expand Down
10 changes: 8 additions & 2 deletions docs/_site/handlebars/extension_now.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@ <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<article data-uid="">
<h1 id="now">{{now}}</h1>

<p>Usage: {{now}}.
Example: The time is {{now}}.</p>
<p>Get the date and time at the moment of execution.</p>
<h2 id="usage">Usage</h2>
<pre><code class="lang-json">{{now}}
</code></pre>
<h2 id="example">Example</h2>
<pre><code class="lang-json">The time is {{now}}.
</code></pre>
<p>This gives you the date/time at present.</p>
</article>


Expand Down
111 changes: 111 additions & 0 deletions docs/_site/handlebars/extension_randomdate copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{now}} | Schema for Data Warehouse Automation </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="{{now}} | Schema for Data Warehouse Automation ">

<link rel="icon" href="../favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="../toc.html">

<meta name="docfx:rel" content="../">

<meta name="docfx:disabletocfilter" content="true">
<meta name="docfx:docurl" content="https://github.com/data-solution-automation-engine/data-warehouse-automation-metadata-schema/blob/dev/docs/handlebars/extension_randomdate copy.md/#L1">
</head>

<script type="module">
import options from './../public/main.js'
import { init } from './../public/docfx.min.js'
init(options)
</script>

<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>


<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../." alt="">

</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>

<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>

<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>

<nav id="breadcrumb"></nav>
</div>

<article data-uid="">
<h1 id="now">{{now}}</h1>

<h2 id="usage">Usage</h2>
<p>Generated a random string no longer than the provided characters as integer input.</p>
<pre><code class="lang-json">{{randomstring 10}}.
</code></pre>
<h2 id="example">Example</h2>
<pre><code class="lang-json">And here is a random string: {{randomstring 10}}.
</code></pre>
<p>This will result in</p>
</article>


<div class="next-article d-print-none border-top" id="nextArticle"></div>

</div>

<div class="affix">
<nav id="affix"></nav>
</div>
</main>

<div class="container-xxl search-results" id="search-results"></div>

<footer class="border-top">
<div class="container-xxl">
<div class="flex-fill">
<span>Schema for Data Solution Automation</span>
</div>
</div>
</footer>
</body>
</html>
112 changes: 112 additions & 0 deletions docs/_site/handlebars/extension_randomdate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{randomdate}} | Schema for Data Warehouse Automation </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="{{randomdate}} | Schema for Data Warehouse Automation ">

<link rel="icon" href="../favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="../toc.html">

<meta name="docfx:rel" content="../">

<meta name="docfx:disabletocfilter" content="true">
<meta name="docfx:docurl" content="https://github.com/data-solution-automation-engine/data-warehouse-automation-metadata-schema/blob/dev/docs/handlebars/extension_randomdate.md/#L1">
</head>

<script type="module">
import options from './../public/main.js'
import { init } from './../public/docfx.min.js'
init(options)
</script>

<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>


<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../." alt="">

</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>

<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>

<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>

<nav id="breadcrumb"></nav>
</div>

<article data-uid="">
<h1 id="randomdate">{{randomdate}}</h1>

<p>Generate a random date somewhere higher than the provided characters as four-digit integer (year) input.</p>
<p>This was originally added to generate test data, and is used for referential-integrity testing purposes.</p>
<h2 id="usage">Usage</h2>
<pre><code class="lang-json">{{randomdate 2020}}
</code></pre>
<h2 id="example">Example</h2>
<pre><code class="lang-json">Here is a random date: {{randomdate 2020}}.
</code></pre>
<p>This may result in <em>2022-08-03T00:00:00.000000</em>.</p>
</article>


<div class="next-article d-print-none border-top" id="nextArticle"></div>

</div>

<div class="affix">
<nav id="affix"></nav>
</div>
</main>

<div class="container-xxl search-results" id="search-results"></div>

<footer class="border-top">
<div class="container-xxl">
<div class="flex-fill">
<span>Schema for Data Solution Automation</span>
</div>
</div>
</footer>
</body>
</html>
112 changes: 112 additions & 0 deletions docs/_site/handlebars/extension_randomnumber.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{randomnumber}} | Schema for Data Warehouse Automation </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="{{randomnumber}} | Schema for Data Warehouse Automation ">

<link rel="icon" href="../favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="../toc.html">

<meta name="docfx:rel" content="../">

<meta name="docfx:disabletocfilter" content="true">
<meta name="docfx:docurl" content="https://github.com/data-solution-automation-engine/data-warehouse-automation-metadata-schema/blob/dev/docs/handlebars/extension_randomnumber.md/#L1">
</head>

<script type="module">
import options from './../public/main.js'
import { init } from './../public/docfx.min.js'
init(options)
</script>

<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>


<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../." alt="">

</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>

<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>

<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>

<nav id="breadcrumb"></nav>
</div>

<article data-uid="">
<h1 id="randomnumber">{{randomnumber}}</h1>

<p>Generate a random number with the numeric positions provided as input integer.</p>
<p>This was originally added to generate test data, and is used for referential-integrity testing purposes.</p>
<h2 id="usage">Usage</h2>
<pre><code class="lang-json">{{randomnumber 5}}
</code></pre>
<h2 id="example">Example</h2>
<pre><code class="lang-json">And here is a random string: {{randomnumber 5}}.
</code></pre>
<p>This may result in <em>1346</em>.</p>
</article>


<div class="next-article d-print-none border-top" id="nextArticle"></div>

</div>

<div class="affix">
<nav id="affix"></nav>
</div>
</main>

<div class="container-xxl search-results" id="search-results"></div>

<footer class="border-top">
<div class="container-xxl">
<div class="flex-fill">
<span>Schema for Data Solution Automation</span>
</div>
</div>
</footer>
</body>
</html>
Loading

0 comments on commit b75df69

Please sign in to comment.