Skip to content

Commit

Permalink
Update asset.md to show public assets path in examples
Browse files Browse the repository at this point in the history
This shows that you still need to put the path from public to the assets folder in your html with the asset extension providing the rest
  • Loading branch information
RawkBob authored Jul 5, 2023
1 parent ec07462 commit 843fb86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/content/extensions/asset.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif)$ {
<html>
<head>
<title>Asset Extension Example</title>
<link rel="stylesheet" href="<?=$this->asset('/css/all.css')?>" />
<link rel="stylesheet" href="/assets<?=$this->asset('/css/all.css')?>" />
</head>

<body>

<img src="<?=$this->asset('/img/logo.png')?>">
<img src="/assets<?=$this->asset('/img/logo.png')?>">

</body>
</html>
~~~
~~~

0 comments on commit 843fb86

Please sign in to comment.