-
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.
minor references fix
- Loading branch information
Showing
7 changed files
with
49 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title data-th-text="${displayName}">Sample title</title> | ||
</head> | ||
<body> | ||
<h1 data-th-text="${displayName} + ' - we made it!'">Sample header</h1> | ||
</body> | ||
</html> |
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,27 @@ | ||
import type { Response } from '/index.d'; | ||
|
||
// @ts-expect-error no-types | ||
import {render} from '/lib/thymeleaf'; | ||
import {getContent} from '/lib/xp/portal'; | ||
|
||
// Specify the view file to use | ||
const VIEW = resolve('./hello.html'); | ||
|
||
// Handle the GET request | ||
export function get(): Response { | ||
|
||
// Get the content that is using the page | ||
const content = getContent(); | ||
|
||
// Prepare the model that will be passed to the view | ||
const model = { | ||
displayName: content.displayName | ||
} | ||
|
||
// Prepare the response object | ||
const response: Response = { | ||
body: render(VIEW, model) | ||
}; | ||
|
||
return response; | ||
} |
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<page> | ||
<display-name>Hello Page Controller</display-name> | ||
<form> | ||
</form> | ||
</page> |