Skip to content

Commit 18bc840

Browse files
msscshgsmet
authored andcommitted
grammar corrections for US English
(cherry picked from commit 52882da)
1 parent 2442848 commit 18bc840

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/src/main/asciidoc/qute.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ include::_attributes.adoc[]
1010
:topics: templating,qute
1111
:extensions: io.quarkus:quarkus-qute,io.quarkus:quarkus-resteasy-qute,io.quarkus:quarkus-rest-qute
1212

13-
Qute is a templating engine designed specifically to meet the Quarkus needs.
14-
The usage of reflection is minimized to reduce the size of native images.
13+
Qute is a templating engine developed specifically for Quarkus.
14+
Reflection usage is minimized to reduce the size of native images.
1515
The API combines both the imperative and the non-blocking reactive style of coding.
16-
In the development mode, all files located in `src/main/resources/templates` are watched for changes and modifications are immediately visible.
17-
Furthermore, we try to detect most of the template problems at build time.
16+
In development mode, all files located in `src/main/resources/templates` are monitored for changes, and modifications become visible immediately.
17+
Furthermore, we aim to detect most template issues at build time.
1818
In this guide, you will learn how to easily render templates in your application.
1919

2020
== Solution
@@ -65,7 +65,7 @@ Let's start with a Hello World template:
6565

6666
NOTE: Templates located in the `pub` directory are served via HTTP. This behavior is built-in, no controllers are needed. For example, the template `src/main/resources/templates/pub/foo.html` will be served from the paths `/foo` and `/foo.html` by default.
6767

68-
If your application is running, you can open your browser and hit: http://localhost:8080/hello?name=Martin
68+
Once your application is running, you can open your browser and navigate to: http://localhost:8080/hello?name=Martin
6969

7070
For more information about Qute Web options, see the https://docs.quarkiverse.io/quarkus-qute-web/dev/index.html[Qute Web guide].
7171

@@ -144,7 +144,7 @@ Hello Martin!
144144

145145
There's an alternate way to declare your templates in your Java code, which relies on the following convention:
146146

147-
- Organise your template files in the `/src/main/resources/templates` directory, by grouping them into one directory per resource class. So, if
147+
- Organize your template files in the `/src/main/resources/templates` directory, by grouping them into one directory per resource class. So, if
148148
your `ItemResource` class references two templates `hello` and `goodbye`, place them at `/src/main/resources/templates/ItemResource/hello.txt`
149149
and `/src/main/resources/templates/ItemResource/goodbye.txt`. Grouping templates per resource class makes it easier to navigate to them.
150150
- In each of your resource class, declare a `@CheckedTemplate static class Template {}` class within your resource class.
@@ -389,7 +389,7 @@ public class ItemResource {
389389
*Template extension methods* are used to extend the set of accessible properties of data objects.
390390

391391
Sometimes, you're not in control of the classes that you want to use in your template, and you cannot add methods
392-
to them. Template extension methods allows you to declare new method for those classes that will be available
392+
to them. Template extension methods allow you to declare new methods for those classes that will be available
393393
from your templates just as if they belonged to the target class.
394394

395395
Let's keep extending on our simple HTML page that contains the item name, price and add a discounted price.
@@ -442,7 +442,7 @@ grouped by target type, or in a single `TemplateExtensions` class by convention.
442442

443443
== Rendering Periodic Reports
444444

445-
Templating engine could be also very useful when rendering periodic reports.
445+
The templating engine can also be very useful for rendering periodic reports.
446446
You'll need to add the `quarkus-scheduler` and `quarkus-qute` extensions first.
447447
In your `pom.xml` file, add:
448448

0 commit comments

Comments
 (0)