-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
string.replace and dollar sign breaking rendering
- Loading branch information
1 parent
5ee0c74
commit 80a4d0b
Showing
44 changed files
with
980 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<main>{props.children}</main> | ||
<main>{children()}</main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<link rel="import" type="template" href="@/templates/html-head.tml" /> | ||
<link rel="import" type="template" href="@/templates/panel-head.tml" /> | ||
<link rel="import" type="component" href="@/components/panel-main.tml" /> | ||
<style> | ||
p { padding: 20px; } | ||
</style> | ||
<script> | ||
//This is ran on both the server and the browser | ||
//There is no signal, children prop here because | ||
//this is not a component. | ||
// | ||
//We also need to becareful with importing browser | ||
//scripts here. You should do that in the <head> | ||
//instead. | ||
import { props } from '@ossph/temple'; | ||
|
||
const url = '/temple/500.html'; | ||
const title = 'Oops... - Temple - The reactive web component template engine.'; | ||
const description = 'Temple is a template engine hat generates web components and support reactivity.'; | ||
|
||
const { error } = props(); | ||
|
||
const toggle = _ => { | ||
document.body.classList.toggle('panel-left-open'); | ||
}; | ||
</script> | ||
<html> | ||
<html-head /> | ||
<body class="dark panel with-head"> | ||
<panel-head /> | ||
<panel-main class="panel-main"> | ||
<div class="container"> | ||
<h1>Oops...</h1> | ||
<p>Something went wrong. Please try again later.</p> | ||
<pre>{error || ''}</pre> | ||
</div> | ||
</panel-main> | ||
</body> | ||
</html> |
Oops, something went wrong.