-
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
1 parent
6a27da0
commit f0e94ad
Showing
9 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
Binary file added
BIN
+778 Bytes
app/jte-classes/gg/jte/generated/ondemand/JtemainpageGenerated$1.class
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
app/jte-classes/gg/jte/generated/ondemand/JtemainpageGenerated.java
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,15 @@ | ||
package gg.jte.generated.ondemand; | ||
public final class JtemainpageGenerated { | ||
public static final String JTE_NAME = "mainpage.jte"; | ||
public static final int[] JTE_LINE_INFO = {0,0,0,0,0,2,2,4,4,4}; | ||
public static void render(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor) { | ||
gg.jte.generated.ondemand.layout.JtepageGenerated.render(jteOutput, jteHtmlInterceptor, new gg.jte.html.HtmlContent() { | ||
public void writeTo(gg.jte.html.HtmlTemplateOutput jteOutput) { | ||
jteOutput.writeContent("\n <h1 style=\"text-align: center;\">Hello World</h1>\n "); | ||
} | ||
}); | ||
} | ||
public static void renderMap(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor, java.util.Map<String, Object> params) { | ||
render(jteOutput, jteHtmlInterceptor); | ||
} | ||
} |
Binary file added
BIN
+2.43 KB
app/jte-classes/gg/jte/generated/ondemand/layout/JtepageGenerated.class
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
app/jte-classes/gg/jte/generated/ondemand/layout/JtepageGenerated.java
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,25 @@ | ||
package gg.jte.generated.ondemand.layout; | ||
import gg.jte.Content; | ||
import hexlet.code.util.NamedRoutes; | ||
public final class JtepageGenerated { | ||
public static final String JTE_NAME = "layout/page.jte"; | ||
public static final int[] JTE_LINE_INFO = {0,0,1,2,2,2,16,16,16,16,16,16,16,16,16,19,19,19,24}; | ||
public static void render(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor, Content content) { | ||
jteOutput.writeContent("\n<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>WebApp</title>\n <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\"\n integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">\n</head>\n<body>\n<header>\n <nav>\n <a"); | ||
if (gg.jte.runtime.TemplateUtils.isAttributeRendered(NamedRoutes.rootPath())) { | ||
jteOutput.writeContent(" href=\""); | ||
jteOutput.setContext("a", "href"); | ||
jteOutput.writeUserContent(NamedRoutes.rootPath()); | ||
jteOutput.setContext("a", null); | ||
jteOutput.writeContent("\""); | ||
} | ||
jteOutput.writeContent(">Main Page</a>\n </nav>\n</header>\n"); | ||
jteOutput.setContext("body", null); | ||
jteOutput.writeUserContent(content); | ||
jteOutput.writeContent("\n<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js\"\n integrity=\"sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL\"\n crossorigin=\"anonymous\"></script>\n</body>\n</html>"); | ||
} | ||
public static void renderMap(gg.jte.html.HtmlTemplateOutput jteOutput, gg.jte.html.HtmlInterceptor jteHtmlInterceptor, java.util.Map<String, Object> params) { | ||
Content content = (Content)params.get("content"); | ||
render(jteOutput, jteHtmlInterceptor, content); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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,5 @@ | ||
@template.layout.page( | ||
content = @` | ||
<h1 style="text-align: center;">Hello World</h1> | ||
` | ||
) |