Added a new scripts block to the default layout
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
|
||||
<link rel="stylesheet" href="/css/eye.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" charset="utf-8"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'partials/navbar.twig' %}
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
{% block title %}Test: {{ test.title }}{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="/js/test.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<h2>Test: {{ test.title }}</h2>
|
||||
@ -81,6 +85,4 @@
|
||||
|
||||
<p><a href="/test">Back</a></p>
|
||||
</div>
|
||||
|
||||
<script src="/js/test.js" type="text/javascript"></script>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user