Fix #44 with Handlebars Templates
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<script setup>
|
||||
import dayjs from "dayjs"
|
||||
import Handlebars from "handlebars"
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import {useFunctions} from "~/composables/useFunctions.js";
|
||||
import EntityModalButtons from "~/components/EntityModalButtons.vue";
|
||||
import { documentTemplateHandlebars } from "~/utils/handlebars";
|
||||
|
||||
const dataStore = useDataStore()
|
||||
const profileStore = useProfileStore()
|
||||
@@ -1098,8 +1098,8 @@ const getDocumentData = async () => {
|
||||
})
|
||||
|
||||
//Compile Start & EndText
|
||||
const templateStartText = Handlebars.compile(itemInfo.value.startText);
|
||||
const templateEndText = Handlebars.compile(itemInfo.value.endText);
|
||||
const templateStartText = documentTemplateHandlebars.compile(itemInfo.value.startText);
|
||||
const templateEndText = documentTemplateHandlebars.compile(itemInfo.value.endText);
|
||||
|
||||
const generateContext = (itemInfo, contactData) => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user