Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit e3d5061

Browse files
fixed highlighting in README snippets
1 parent e070cf2 commit e3d5061

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def index(request):
3232

3333
### Root Template
3434

35-
```html=
35+
```html+django
3636
{# templates/base.html #}
3737
{% load js_routes_tags %}<!DOCTYPE html>
3838
<html class="h-full bg-gray-200">
@@ -54,7 +54,7 @@ def index(request):
5454

5555
### Creating responses
5656

57-
```python=
57+
```python
5858
from inertia.views import render_inertia
5959

6060
def event_detail(request, id):
@@ -76,15 +76,15 @@ because it had serializer and validation and fully compatible with django.
7676

7777
## Client-side setup
7878
### Install dependencies
79-
```
79+
```bash
8080
npm install @inertiajs/inertia @inertiajs/inertia-vue
8181
# extra deps
8282
npm install parcel-bundler
8383
```
8484

8585
### Initialize app
8686

87-
```javascript=
87+
```javascript
8888
import { InertiaApp } from '@inertiajs/inertia-vue'
8989
import Vue from 'vue'
9090
Vue.use(InertiaApp);

0 commit comments

Comments
 (0)