drogonframework / drogonframework/drogon

Access Static Resources And Compile Into Executable

Open
#516 13 comments 0 reactions 1 assignee Claimed by @rbugajewski View on GitHub
enhancement question
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

MVC web frameworks such as Rails and Django typically have a static directory for storing static resources such as images, css and javascript files. In Drogon, it appears that these resources cannot be specified and statically linked into the executable. Evidently _<%view >_ cannot be used in _csp_ files in order to "include" these resources in a HTML page.

A link such as __ for example, works perfectly in Drogon but it does not appear to be accessible when the path is local, such as for example: __. Am I missing something or is this a missing feature? The second issue is that these types of static resources are typically cached upstream or served by a specialized server. How would Drogon enable such caching. Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.