Comments (8)
Yes, compiled CSS options depend on ruby or node.js
If your server doesn't depend on either, and you want to use a compiled CSS language, that's painful. Your options are to compile in the development phase, or bite the bullet and include these dependencies.
More over, where's your sense of adventure, man!
from gcss.
Thanks for your comments! I wanted to compile an alternate CSS file like Less per HTTP request in Go HTTP server in development mode without any external libraries, and created this package.
from gcss.
I would of been happier if the syntax was similar to Less instead of Sass lol.
I kinda wish you enforced the { } braces just like how Go enforces them... Feels more consistent.
In any case, do you plan on making it production ready... ? Also, you (or someone in the community) will probably have to remove all my other dependencies on nodejs to actually make it worthwhile... for instance uglify-js, html-minifier, and clean-css... then I really don't need to install nodejs :)
Sorry I was a bit rude to begin with.. At least your contributing where I'm just complaining!!
from gcss.
@yosssi Oh that makes sense... may I know your use case for why you need to compile for each request?
from gcss.
I would of been happier if the syntax was similar to Less instead of Sass lol.
I kinda wish you enforced the { } braces just like how Go enforces them... Feels more consistent.
Oh, you like the style of Less... I omitted curly braces and semicolons from the GCSS syntax for making the syntax simple. I think it's a matter of taste.
In any case, do you plan on making it production ready... ?
Yes, I do. I'm going to release version 1.0 (production version) of this package near the end of the year if any issues would not occur until then.
Also, you (or someone in the community) will probably have to remove all my other dependencies on nodejs to actually make it worthwhile... for instance uglify-js, html-minifier, and clean-css... then I really don't need to install nodejs :)
That's a good idea. We have to do a lot of things to remove all dependencies!
Sorry I was a bit rude to begin with.. At least your contributing where I'm just complaining!!
No prob. It was my fault because I didn't say why I started to create this package at all.
may I know your use case for why you need to compile for each request?
When I develop a Go web app, I want to compile GCSS files for each request because I can save the time to execute a compile command and restart an HTTP server process. I know I can do it by using the Grunt's watch task but I don't rely on using Node.js when I develop a Go application.
from gcss.
@yosssi Thanks for the awesome reply.
from gcss.
@einthusan Thanks for your advice. Yeah, I'll compile a GCSS file for each request only in development mode. I'll use a pre-compiled CSS file in production.
from gcss.
Oh lol... I didn't know you were doing that.. Well then.. thanks for the chat.. I will mark this as closed! :)
from gcss.
Related Issues (14)
- Todo
- 4 spaces indenting HOT 5
- Variables cannot refer to variables HOT 1
- include using text/templates.
- @import external stylesheets HOT 2
- Allow use of @apply in gcss
- Does not work with tabs in source file
- Various parsing bugs.
- Allow variables within parenthesis
- Can't use media queries?!
- dead? HOT 1
- Allow optional curly brackets (a la .scss vs .sass) HOT 4
- Allow variables in the middle of a statement HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcss.