Razor.Templating.Core icon indicating copy to clipboard operation
Razor.Templating.Core copied to clipboard

External css files do not work

Open HoehensteigerGames opened this issue 3 years ago • 4 comments

I tried everything i knew but it was not possible to use an external CSS file. Everything works fine like in the document and in the example.

that is a screenshot of my current Project: image

What have i don wrong? is it possible to use External css files?

HoehensteigerGames avatar May 06 '22 19:05 HoehensteigerGames

Hi @HoehensteigerGames, I'll look into this & let you know. In the mean time, let me know what's your expected output? & what's your final goal after rendering the template? If you're doing this for email templating, I would suggest you to keep the styles in the same file.

soundaranbu avatar May 08 '22 15:05 soundaranbu

yes thats the goad. I Want to get an Email template and yes at the moment i will use them in the same file. But the mail will be very big. So it would be conventient to split up the file.

HoehensteigerGames avatar May 12 '22 17:05 HoehensteigerGames

Is there any update on this? I am having the same problem.

bentald avatar Aug 31 '22 17:08 bentald

Yes there's an update. I updated the README but missed to update here. @Url.Content is not supported by the library. If the aim is to keep the styles separate, please try partial view instead. Otherwise we need to keep it in the same file only. Hope it helps.

soundaranbu avatar Aug 31 '22 17:08 soundaranbu

I've updated the documentation that this is not supported. Feel free to reopen if there are any suggestions. Thanks :)

soundaranbu avatar Jan 28 '23 11:01 soundaranbu