Skip to content

Commit a24aaf5

Browse files
committed
chore: rename view spec
1 parent 3c39b03 commit a24aaf5

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/Web/Documentation/content/1.x/4-internals/03-view-spec.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Tempest View spec
3-
description: Technical specification for Tempest View, to be used for static analysis and IDE integration
2+
title: View specifications
3+
description: Read the technical specifications for Tempest View, our templating language.
44
---
55

66
Tempest View is a server-side templating engine powered by PHP. Most of its syntax is inspired by [Vue.js](https://vuejs.org/). Tempest View aims to stay as close as possible to HTML, using PHP where needed. All syntax builds on top of HTML and PHP so that developers don't need to learn any new syntax.
@@ -412,7 +412,7 @@ $title = 'foo';
412412
<!-- $title will need to be passed in explicitly,
413413
otherwise `x-post` wouldn't know about it: -->
414414

415-
<x-post :title="$title"></x-post>
415+
<x-post :title="$title"></x-post>
416416
```
417417

418418
```php
@@ -428,7 +428,6 @@ final class HomeController
428428
```
429429

430430
```html x-base.view.php
431-
432431
<h1>{{ $siteTitle }}</h1>
433432
```
434433

@@ -444,17 +443,17 @@ All meta-data about discovered view components can be retrieved via the hidden `
444443

445444
```json
446445
{
447-
"file": "/…/tempest-framework/packages/view/src/Components/x-markdown.view.php",
448-
"name": "x-markdown",
449-
"slots": [],
450-
"variables": [
451-
{
452-
"type": "string|null",
453-
"name": "$content",
454-
"attributeName": "content",
455-
"description": "The markdown content from a variable"
456-
}
457-
]
446+
"file": "/…/tempest-framework/packages/view/src/Components/x-markdown.view.php",
447+
"name": "x-markdown",
448+
"slots": [],
449+
"variables": [
450+
{
451+
"type": "string|null",
452+
"name": "$content",
453+
"attributeName": "content",
454+
"description": "The markdown content from a variable"
455+
}
456+
]
458457
}
459458
```
460459

@@ -649,4 +648,4 @@ Pressing the same keyboard short twice will toggle between server-side and clien
649648
{{-- this text was selected then commented out via a keyboard shortcut --}} — First press
650649
<!-- this text was selected then commented out via a keyboard shortcut --> — Second press
651650
this text was selected then commented out via a keyboard shortcut — Third press, reverts back to normal
652-
```
651+
```

0 commit comments

Comments
 (0)