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:
@@ -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");
|
||||
|
||||
@@ -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"))
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<i>Iris Web Framework © 2022</i>
|
||||
<i>Iris Web Framework © 2023</i>
|
||||
Reference in New Issue
Block a user