1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

minor: example improvement

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-01-25 05:50:42 +02:00
parent 0e0ca214cb
commit fc4214e9ae
12 changed files with 13 additions and 15 deletions

View File

@@ -41,7 +41,7 @@
However, `neffos.(min.)js` is a NPM package too so alternatively,
you can use it as dependency on your package.json and all nodejs-npm tooling become available:
see the "browserify" example for more-->
<script src="https://cdn.jsdelivr.net/npm/neffos.js@latest/dist/neffos.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/neffos.js@0.1.27/dist/neffos.min.js"></script>
<script type="text/javascript">
const wsURL = "ws://localhost:8080/protected/ws"
var outputTxt = document.getElementById("output");

View File

@@ -26,7 +26,7 @@ func newApp() *iris.Application {
app := iris.New()
// Auth part.
app.RegisterView(iris.Blocks(iris.Dir("./views"), ".html").
app.RegisterView(iris.Blocks("./views", ".html").
LayoutDir("layouts").
Layout("main"))

View File

@@ -1 +1 @@
<i>Iris Web Framework &copy; 2022</i>
<i>Iris Web Framework &copy; 2023</i>