P
P
Piranis2014-06-24 01:29:17
Ruby on Rails
Piranis, 2014-06-24 01:29:17

How to implement adding styles (sass) to each new article?

Store sass articles in a database and then compile it? and if there are a lot of articles and the user looks at only two and loads a large amount of css .... or use slim?
Here is how, for example, this is implemented in wos.ru , I looked in this article
_cHb1TlZhAjOYxs7i1t9cIeNacr4WQ0GDNd7CzK7
. There, %div.objects is created in the style attribute of which, apparently from the database, manually written styles (css) are inserted.
But what if you want to write a little sass in the admin panel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Lazarev, 2014-06-25
@Piranis

Excellent drug from the author.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question