Skip to content

Commit

Permalink
Improving previous bug fix for more edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Javiani committed Jan 10, 2025
1 parent 75c17e3 commit 176ed41
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/jails.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jails.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jails-js",
"version": "5.9.0",
"version": "5.8.7",
"description": "Jails - Elegant and Minimalistic Javascript Application Library",
"module": "./dist/jails.js",
"main": "./dist/jails.js",
Expand Down
4 changes: 2 additions & 2 deletions src/template-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Transpile from './transpile'
import { uuid, decodeHTML } from './utils'

const config = {
tags: ['{{', '}}']
tags: ['${', '}']
}

export const templateConfig = (newconfig) => {
Expand Down Expand Up @@ -71,6 +71,6 @@ const createTemplateId = (element, templates, components ) => {
const fixDIffIf = (node) => {
const _if = node.querySelectorAll('[html-if]')
_if.forEach( el => {
el.parentNode.insertBefore(document.createComment('[html-if]'), el.nextSibling)
el.parentNode.insertBefore(document.createComment(''), el.nextSibling)
})
}

0 comments on commit 176ed41

Please sign in to comment.