2
0
Fork 0
mirror of https://github.com/ethauvin/rife2-hello.git synced 2025-04-25 23:37:12 -07:00

Made "src/main/resources/templates" the only default template dir.

Made the template excludes adapt to the template types that are pre-compiled and use a more restrictive pattern.
This commit is contained in:
Geert Bevin 2023-03-05 10:52:34 -05:00
parent b51e36ee73
commit a3a5c7c380
5 changed files with 7 additions and 16 deletions

View file

@ -6,7 +6,6 @@ public class App extends Site {
public void setup() {
var hello = get("/hello", c -> c.print(c.template("hello")));
get("/", c -> c.redirect(hello));
get("/world", c -> c.print(c.template("world")));
}
public static void main(String[] args) {

View file

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><!--v title-->Hello<!--/v--></title>
<link rel="stylesheet" href="{{v webapp:rootUrl/}}css/style.css?{{v context:paramRandom/}}">
</head>
<body>
<p>Hello World from src/main/resources/templates</p>
</body>
</html>