Skip to content

Commit

Permalink
Update README for v2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyterra committed Sep 3, 2024
1 parent 6f9c2b8 commit 44a6998
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<img src="https://github.com/jellyterra/artworks/raw/master/logo/pagine_v2.svg" height="140" alt="Pagine logo" />

# Pagine v2.4.0
# Pagine v2.4.1

Pagine is an high-performance website constructor that makes full use of multicore hardware.

Expand Down Expand Up @@ -33,7 +33,7 @@ Find the executable that matches your OS and architecture in [releases](https://
### Build from source

```shell
$ go install github.com/webpagine/pagine/v2/cmd/pagine@v2.4.0
$ go install github.com/webpagine/pagine/v2/cmd/pagine@v2.4.1
```

> [!TIP]
Expand Down Expand Up @@ -246,12 +246,17 @@ Make sure `tsc` had been installed on target machine.
> [!TIP]
> `api.Attr.isServing` can be used to enable some debug code in templates such as page realtime update.

### Path processing.

For more detail, check Go source file: `structure/v1_path.go`

Example: `{{ path.Base .path }}`

### String processing

| Func | Args | Result |
|----------------------|-----------------------------|--------|
| `strings.HasPrefix` | str: String, prefix: String | Bool |
| `strings.TrimPrefix` | str: String, prefix: String | String |
For more detail, check Go source file: `structure/v1_strings.go`

Example: `{{ strings.HasSuffix .logo.src ".svg" }}`

### Content rendering

Expand Down Expand Up @@ -309,7 +314,7 @@ jobs:
run: sudo apt install node-typescript -y
- name: Install Pagine
run: go install github.com/webpagine/pagine/v2/cmd/pagine@v2.4.0
run: go install github.com/webpagine/pagine/v2/cmd/pagine@v2.4.1
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 44a6998

Please sign in to comment.