mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 03:27:05 -04:00
Load handlebars without script-loader
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
a98d184f2c
commit
1150c72fa7
2 changed files with 2 additions and 7 deletions
|
@ -18,6 +18,7 @@ import markdownitContainer from 'markdown-it-container'
|
|||
import Plugin from 'markdown-it-regexp'
|
||||
|
||||
import mermaid from 'mermaid'
|
||||
import handlebars from 'handlebars'
|
||||
|
||||
require('prismjs/themes/prism.css')
|
||||
require('prismjs/components/prism-wiki')
|
||||
|
@ -666,7 +667,7 @@ export function exportToHTML (view) {
|
|||
// generate html via template
|
||||
$.get(`${serverurl}/build/html.min.css`, css => {
|
||||
$.get(`${serverurl}/views/html.hbs`, data => {
|
||||
const template = window.Handlebars.compile(data)
|
||||
const template = handlebars.compile(data)
|
||||
const context = {
|
||||
url: serverurl,
|
||||
title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue