Commit 2e11c91e authored by Ilya Petrovanov's avatar Ilya Petrovanov
Browse files

feat: Добавил поддержку различной статики

parent 0498fed9
1 merge request!3KTemplate Bundle
Showing with 14 additions and 5 deletions
+14 -5
ktemplate:
path: /app/public/css
path: /app/public/static
url: "http://localhost:8800"
template_path: /app/templates
\ No newline at end of file
......@@ -8,7 +8,7 @@ services:
- .:/app
ports:
- "8800:8800"
- "8801:8800"
working_dir: /app/public
entrypoint: php -S 0.0.0.0:8800
......@@ -21,10 +21,10 @@ services:
- .:/app
ports:
- "8801:8801"
- "8800:8800"
working_dir: /app
entrypoint: kphp_out/server -H 8801 -f 1 --user root
command: kphp_out/server -H 8800 -f 10 --user root
database:
......
File moved
let num1 = 5;
let num2 = 10;
let sum = num1 + num2;
document.getElementById("consoleOutput").innerHTML += "Sum " + num1 + " and " + num2 + " equals " + sum + "<br>";
public/static/pepe.png

37.5 KB

......@@ -9,10 +9,15 @@
Test
</header>
<body>
<link rel="stylesheet" type="text/css" href="{{ asset("style.css") }}" />
<img src="{{ asset("pepe.png", "png") }}">
<p id="consoleOutput"></p>
<script src="{{ asset("js/script.js", "js") }}"></script>
<link rel="stylesheet" type="text/css" href="{{ asset("css/style.css", "css") }}" />
<p>This text will be red as defined in the external stylesheet.</p>
<p>Hello, {{ name }}</p>
<img src="{{ asset("pepe.png", "png") }}">
<p style="color: blue">The <code>style</code> attribute can override it, though.</p>
</body>
<footer>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment