Design News:
Moonfall - CSS with variables
Generate CSS dynamically as a cgi script or run from the command line.
Comments (8)
total bull
why download, install and run (dont forget LEARN) a new language/pseudocode when you can do all this and MORE by utilizing the PHP/Perl/Python YOU ALREADY KNOW AND HAVE ON YOUR SITE/HOST???
This is a laborious answer to a question NOBODY is asking!
next time dont post your Computer Studies homework as some useful invention!
I didn’t submit Moonfall to this site, but found this site through my referer log. I am the creater of Moonfall. I made it very clear that there is amost nothing to learn, you can get almost full functionality with a few simple language constructs.
Also, why use Moonfall rather than use PHP/Perl/Python? Well, its easier to set up if you need to, its language neutral, its not full of the messy boiler plate code that those language would require, “use blah;” for example. You really don’t have to install it. At most you need to compile it, and soon we’ll have binaries so the only thing is downloading a single file and the “install” in complete.
Why bother create python or php when perl was on the scene? They are “laborious answers” to a question nobody was asking.
“Why not use PHP/Perl/Python” instead. Well, people aren’t, they are just doing painful, plain old css. So give them all a try and maybe you can answer your own question.
“At most you need to compile it, “and soon we’ll have binaries so the only thing is downloading a single file and the “install” in complete.
.... Thats like KFC describing their new Chicken meal with the caveat, “at most you need to COOK it”
In the real world, most people dont have C Compilers on their web server available or even a system prompt.
PHP PERL and PYTHON are ALREADY installed on your web host - failing that, you can use Client side Javascript to add the ‘variable substitution capability’
With any of the 3 P’s (PHP, Perl, Python) you can generate the css using content dynamically derived from the database or cookies or the user’s login status, iterative looping and conditional steps.
I know its your pride and joy and all that, but its the technological achievement of inventing a rock
I said “binaries”, so they download a single file. You say thats too much for them, but then expect them write a script to generate css, along with all the boilerplate of that language.
I think you should really read the site and comment on that rather than what you “imagine” moonfall is about.
Do you reall find downloading a binary, writing a file called moonfall.cgi with these contents
#!/usr/bin/env /my/home/dir/moonfall
color=blue
and another file called moonfall.css
with the line
body{background-color:[color];}
too difficult? but then expect them to crank out a perl script thats probably horribly ugly, full of strings, error checking?
Do you still find color=“blue” a “new” language you have to learn?
Note, the css file, which will be by far the biggest file, will also be viewable with all their editors CSS styntax highlighting and formatting, not some printing perl monstrosity.
Again, I really think you should look more carefully at what you are commenting on, rather than blindly judge what you feel is good for everybody.
sigh.
you said “SOON” there will be binaries, which of course means there aint any binaries NOW :(
You ignore that the web developer ALREADY knows PHP primarily and often PERL/Python as well.
The “incredibly difficult syntax” is already part of their toolkit and their is nothing additional to deploy to utilize the benefits.
Again, anyone with the system level access you describe as necessary to implement your little jewel, already has the PHP/web skills to do better on their own!
anyway, tis best to move on. Not every thing you invent will be met with fawning adulation and gushing praise. Dont let the Moonfall be your downfall!
So a large part off your negative argument is based on the fact I haven’t uploaded binaries yet? Solid. Moonall just went public 4 days ago.
And I’ll bring up the point again, if this is easily solved by using perl/python/php, why is nobody doing it? Everwhere you look there are huge ugly css files where people put in comments just so they can do find and replace, and you say this can be easily solved with something like PHP, yet its not very common.
Moonfall is not for little projects hosted on mycoolhost.com for $12.95/month, its for big complicated web applications I do for work. Those css files get very nasty, and very redundant (look up DRY). Anybody working in that situation will not have a problem doing a little compile. And even i they can’t compile, they can get binaries (which I will supply and other will contribute, jeez)
Reading over your last comment I was struct by how idiotic it is:
“You ignore that the web developer ALREADY knows PHP primarily and often PERL/Python as well.”
You are assuming that moonfall is just for developers. Its also for web designers. There are a great many web laborers, the type that would visit a site called, I don’t know, maybe “cssdrive.com” that don’t do web development, they design web sites, which is a lot of work, probably harder than any code-monkey scrips you crank out.
In moonfall they have a very simple setup, simple syntax, and still have a css file almost intact they can edit, and only have to add tags when they want variables.
“So a large part off your negative argument is based on the fact I haven’t uploaded binaries yet? “
(wake up call: dude, that was a RESPONSE! not the core of my argument :) see the first post for info, a dictionary for help with the big words…. /end wake up call)
.......................
I dont know what you are talking about :(
perhaps because you dont know either!
lol (j/k)
web developer/web designer, tomato, tomAto whatever :)
“And I’ll bring up the point again, if this is easily solved by using perl/python/php, why is nobody doing it? “
I guess we all forgot to send you the memo to welcome you to the 21st century!
this isnt rocket science its been done for years and not just for css but also for XML files in playlists
here’s a quick primer, “rock inventor”
<?php
//The headers below tell the browser to cache the file and also tell the browser it is css.
header(“Cache-Control: must-revalidate”);
$offset = 60*60*24*60;
$ExpStr = “Expires: “.gmdate(“D, d M Y H:i:s”,time() + $offset).” GMT”;
header($ExpStr);
header(‘Content-Type: text/css’);
//set your variables here as constants OR get them from the database a dynamic
$text_color = “black”;
$css_fade = “white”;
$entryborder =“steelblue”;
/* User names with links */
#textoutput li span a {
font-weight: normal;
display: inline !important;
border-bottom: 1px dotted <?php echo $text_color; ?>
}