First of all, to make things clear, I know I can include my css file by
{{ HTML::style('css/myStyle.css') }}
Which the html to be generated will be:
<link rel="stylesheet" type="text/css" href="http://myhost/public/css/myStyle.css">
The problem is that my view file is used for email and many email client don't load external css file. So I need to make it something like:
<style>
.content-of-my-css {
//content of my css
}
// more css
</style>
As the css settings will be used for multiple email template, I don't want to hard code it. In pure PHP, this can be done by (reference)
<style><?php include "path/to/my/css";?></style>
However, when I do that with laravel, it says:
ErrorException (E_ERROR) include(): http:// wrapper is disabled in the server configuration by allow_url_include=0
So, is there a way I can embed the css in laravel? (I am using laravel 4.2)