News for hackers. Stuff that matters.

krasimirtsonev

Is AbsurdJS sounds absurdly to you?

http://krasimirtsonev.com/blog/article/AbsurdJS-fundamentals

Hi guys, I got some positive and some negative feedback about the library, but it gets really interesting last month. It's now not only CSS but HTML preprocessor. It supports JavaScript, JSON and YAML input and it is ported for the client-side usage. I finally found some time to write a more descriptive article. What you think? Can this nodejs module be used in the future?

( Read More... | no comments | on HN )
Re:AbsurdJS – JavaScript based CSS preprocessor on Saturday October 12, 2013 @08:19AM (#6538459)
Actually you care about the ordering if you have same properties applied for same selector. However, AbsurdJS hides this and automatically calculate the latest defined value. And that's what it goes in the compiled file. I need to spend some time using the library to be sure that such problem is actually solved. So, shortly: I can't 100% guarantee that you will not have problems with that.
Re:AbsurdJS – JavaScript based CSS preprocessor on Saturday October 12, 2013 @07:59AM (#6538412)
Yep, @extends in SASS are exactly you need, but unfortunately they don't support params and interpolation in their names doesn't work as expected.
Re:AbsurdJS – JavaScript based CSS preprocessor on Saturday October 12, 2013 @03:16AM (#6537651)
It is actually possible if you turn of combineSelectors. Or you may create two different instances of AbsurdJS and at the end merge their output.
Re:AbsurdJS – JavaScript based CSS preprocessor on Saturday October 12, 2013 @03:14AM (#6537644)
Hello guys. Thanks for the comments. The next things which I'm going to do is to start packing components. One of the big problems which I have for a long time, is the fact that I have to deliver html, css and javascript. Usually they are placed in different places and I have to take care to put them in the browser. With AbsurdJS I could send the javascript logic and the css together.