Skip to content

Commit

Permalink
Use new mojo.js 1.25.0 features
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 21, 2023
1 parent f81ee80 commit 4a30bd8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/linkcheck/views/layouts/linkcheck.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%= ctx.content.header
</head>
<body>
<h1><%= await ctx.linkTo('index', {class: 'title'}, 'Link Check') %></h1>
<h1><%= await tags.linkTo('index', {class: 'title'}, 'Link Check') %></h1>
%= ctx.content.main
</body>
</html>
6 changes: 3 additions & 3 deletions examples/linkcheck/views/links/index.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% view.layout = 'linkcheck';
% stash.title = 'Check links';
<{formBlock}>
%= await ctx.inputTag('url', {type: 'url', value: 'https://mojolicious.org/perldoc'})
%= await ctx.submitButtonTag('Check')
%= await tags.input('url', {type: 'url', value: 'https://mojolicious.org/perldoc'})
%= await tags.submitButton('Check')
<{/formBlock}>
%= await ctx.formFor('check', {class: 'check-form'}, await formBlock());
%= await tags.formFor('check', {class: 'check-form'}, await formBlock());
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@types/tough-cookie": "^4.0.2",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"c8": "^7.11.3",
"c8": "^8.0.0",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
Expand All @@ -70,7 +70,7 @@
"node": ">= 16"
},
"dependencies": {
"@mojojs/core": "^1.23.2",
"@mojojs/core": "^1.25.0",
"@mojojs/path": "^1.5.3",
"@mojojs/pg": "^1.1.4",
"@mojojs/util": "^1.6.0",
Expand Down
20 changes: 10 additions & 10 deletions vendor/views/layouts/minion.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<head>
<title><%= stash.title ?? 'Minion' %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
%= await ctx.scriptTag('/minion/jquery/jquery.js')
%= await ctx.scriptTag('/minion/bootstrap/bootstrap.js')
%= await ctx.styleTag('/minion/bootstrap/bootstrap.css')
%= await ctx.scriptTag('/minion/moment/moment.js')
%= await ctx.scriptTag('/minion/d3/d3.js')
%= await ctx.scriptTag('/minion/epoch/epoch.js')
%= await ctx.styleTag('/minion/epoch/epoch.css')
%= await ctx.styleTag('/minion/fontawesome/fontawesome.css')
%= await ctx.styleTag('/minion/app.css')
%= await ctx.scriptTag('/minion/app.js')
%= await tags.script('/minion/jquery/jquery.js')
%= await tags.script('/minion/bootstrap/bootstrap.js')
%= await tags.style('/minion/bootstrap/bootstrap.css')
%= await tags.script('/minion/moment/moment.js')
%= await tags.script('/minion/d3/d3.js')
%= await tags.script('/minion/epoch/epoch.js')
%= await tags.style('/minion/epoch/epoch.css')
%= await tags.style('/minion/fontawesome/fontawesome.css')
%= await tags.style('/minion/app.css')
%= await tags.script('/minion/app.js')
<script>
$(() => {
checkAll();
Expand Down

0 comments on commit 4a30bd8

Please sign in to comment.