Skip to content

Commit

Permalink
Merge pull request #50 from mkouba/qute-web-rename-2
Browse files Browse the repository at this point in the history
Rename quarkus-qute-server-pages to quarkus-qute-web - round #2
  • Loading branch information
mkouba authored Nov 10, 2023
2 parents e515540 + 285f6d6 commit bb810d5
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Quarkus Qute Web

[![Version](https://img.shields.io/maven-central/v/io.quarkiverse.quteserverpages/quarkus-qute-server-pages.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.quarkiverse.quteserverpages/quarkus-qute-server-pages)
[![Version](https://img.shields.io/maven-central/v/io.quarkiverse.qute.web/quarkus-qute-web.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.quarkiverse.qute.web/quarkus-qute-web)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

The goal of this extension is to expose the [Qute](https://quarkus.io/guides/qute-reference) templates located in the `src/main/resource/templates` directory via HTTP. Automatically, no controllers needed. For example, the template `src/main/resource/templates/web/foo.html` will be served from the paths `/foo` and `/foo.html` by default.
Expand All @@ -15,4 +15,4 @@ In a template you can access:
- the current `io.vertx.core.http.HttpServerRequest` via the `http:` namespace, e.g. `{http:request.path}`
- the query parameters via the `http:` namespace, e.g. `{http:param('name')}` and `{http:param('name','DefaultName'}`

Read the full [documentation](https://quarkiverse.github.io/quarkiverse-docs/quarkus-quteserverpages/dev/index.html).
Read the full [documentation](https://quarkiverse.github.io/quarkiverse-docs/quarkus-qute-web/dev/index.html).
4 changes: 2 additions & 2 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: quarkus-quteserverpages
title: QuteServerPages
name: quarkus-qute-web
title: Qute Web
version: dev
nav:
- modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkiverse.quteserverpages.it;
package io.quarkiverse.qute.web.it;

import io.quarkus.qute.TemplateEnum;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkiverse.quteserverpages.it;
package io.quarkiverse.qute.web.it;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkiverse.quteserverpages.it;
package io.quarkiverse.qute.web.it;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>Colors</title>
</head>
<body>
{#for color in io_quarkiverse_quteserverpages_it_Colors:colors}{color}{#if color_hasNext}, {/if}{/for}
{#for color in io_quarkiverse_qute_web_it_Colors:colors}{color}{#if color_hasNext}, {/if}{/for}
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.quarkiverse.quteserverpages.it;
package io.quarkiverse.qute.web.it;

import io.quarkus.test.junit.QuarkusIntegrationTest;

@QuarkusIntegrationTest
public class QspIT extends QspTest {
public class QuteWebIT extends QuteWebTest {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkiverse.quteserverpages.it;
package io.quarkiverse.qute.web.it;

import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.containsString;
Expand All @@ -9,7 +9,7 @@
import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
public class QspTest {
public class QuteWebTest {

@Test
public void testTemplates() {
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<module>docs</module>
</modules>
<scm>
<connection>scm:git:[email protected]:quarkiverse/quarkus-qute-server-pages.git</connection>
<developerConnection>scm:git:[email protected]:quarkiverse/quarkus-qute-server-pages.git</developerConnection>
<url>https://github.com/quarkiverse/quarkus-qute-server-pages</url>
<connection>scm:git:[email protected]:quarkiverse/quarkus-qute-web.git</connection>
<developerConnection>scm:git:[email protected]:quarkiverse/quarkus-qute-web.git</developerConnection>
<url>https://github.com/quarkiverse/quarkus-qute-web</url>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/main/resources/META-INF/quarkus-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
- web
- qute
- templates
guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-quteserverpages/dev/index.html
guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-qute-web/dev/index.html
categories:
- "web"
status: "preview"

0 comments on commit bb810d5

Please sign in to comment.