SOLVED: magically on restart public\css\style.css was picked up and rendered in web browser (no changes to project files was made)
download project files
I have followed Dancer2::Tutorial instruction and got it working.
OS: Windows 10
Perl: Strawberry perl v5.30.2
But I can not figure out where css/style.css should be placed to be used with the script.
I have tried following location:
{script_location}\css\style.css
{script_location}\public\css\style.css
Template view\layouts\main.tt defines <link rel=stylesheet type=text/css href="[% css_url %]"> as location of the style.css file.
The code defines $tokens->{'css_url'} = request->base . 'css/style.css'; as location of style.css file.
Rendered HTML code has <link rel=stylesheet type=text/css href="http://localhost:3000/css/style.css"> in the header.
And still CSS style defined in style.css does not produce expected result.
.intro {
background-color: #555;
}
For a test I have defined in view\show_entries.tt template
<dev class="intro">This line should have different background color</dev>
What is proper location Dancer2::Tutorial for style.css file?
NOTE: created database file dancer.db was not found in 'project' directory, but it was found in temporary directory %TEMP% instead.
NOTE: if style defined inside <head></head> it produces expected result
<head>
<style>
.intro {
background-color: #555;
}
</style>
</head>


