-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{%% G.title "Sample Site Main"} | ||
<h1>View SYSTEM !!</h1> | ||
<h2>Test</h2> | ||
<pre> | ||
Known node {=x}. | ||
Allow undefined {=?undefined}. | ||
Raw: {=@x}. | ||
X={=x} | ||
</pre> |
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,56 @@ | ||
<?php | ||
/** | ||
G.title << required = string or array | ||
G.meta << G.meta.$name => $content | ||
G.css << G.css.$name => filename | ||
G.js << G.js.$name => filename | ||
G.head << G.head.$name = HTML << add ANY html to HEAD | ||
G.body-top << G.body-top.$name = HTML << add ANY html to the top of the body | ||
G.body-bottom << G.body-bottom.$name = HTML << add ANY html to the bottom of the body | ||
Examples: | ||
G.css.my-css = "/css/my-css" | ||
G.meta.description = "my-description" | ||
G.meta.viewport = "width=device-width" | ||
**/ | ||
|
||
$P['G.js.jquery'] = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"; | ||
$P["G.css.main"] = "/css/main.css"; | ||
$P['G.meta.viewport'] = "width=device-width"; | ||
|
||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>{=G.title | not_empty}</title> | ||
{?G.head}{#G.head}{=@.}{/* NAME => FULL meta tag */}{/#}{/?} | ||
{#G.meta}<meta name="{=#}" content="{=.}">{/#} | ||
{#G.css}{?.}<link href="{=. | \WebVersion::url}" rel="stylesheet">{/?} {/#} | ||
{#G.js}{?. | \WebVersion::url}<script src="{=?}"></script>{/?} {/#} {/* local versioned & remote javascripts */} | ||
</head> | ||
<body> | ||
{=@?G.body-top} | ||
{=:header} | ||
{=@MAIN} | ||
{=:footer} | ||
{=@?G.body-top} | ||
{%xadmin} | ||
<style> | ||
admin, .admin, .admin a { color: #f55 !important; } | ||
.admin-item-info { border: 1px solid #f55; display: inline-block; } | ||
</style> | ||
{=/inc/Debug:footer} | ||
{/} | ||
</body> | ||
</html> | ||
|
||
{:block header} | ||
<div id=header>HEADER</div> | ||
<div id=body> | ||
{/:} | ||
|
||
{:block footer} | ||
</div> | ||
<div id=footer>Footer</div> | ||
{/:} |
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 @@ | ||
../../var/compiled-views/app1 |
File renamed without changes.
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 @@ | ||
xxy: "app.a2.x.xxy node" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
|
||
$d = \hb\DB("emp"); | ||
'Instance(hb\\db\\adapter\\Mysql)'; | ||
|
||
iprofiler()::$enabled; | ||
0; |