weisjohn / desckit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from elis/desckit
Custom Desktop Wallpaper Generator with NodeJS and PhantomJS
This project forked from elis/desckit
Custom Desktop Wallpaper Generator with NodeJS and PhantomJS
Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.
It's 55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS
stuff to do:
currently fails on my windows7 machine:
john@DANIEL ~/mysrc/desckit (master)
$ node app.js
Express server listening on port 1280
GET /assemble/foggy/render/60 200 392ms - 235
exec error: Error: Command failed: 'phantomjs.exe' is not recognized as an inter
nal or external command,
operable program or batch file.
$ desckit -I 20 foggy
Express server listening on port 1280
GET /assemble/wide/render 200 10ms - 119
1360603056810 undefined 600000
getting them...
render file args: { '0': null,
'1': '<style>\n body {\n background-image: url(\'/scripts/wide/quivertrees_breuer_3000.jpg\');\n background-position: 10% bottom;\n }\n</style>\n\n <div id="time" class="prop">\n \t12:17:36\n </div>\n <div id="date" class="prop">\n \tMonday Feb 11th\n </div>\n\n \n \n \n \n \n\n ' }
{ scriptID: 'wide',
title: 'Eli\'s Wallpaper Generator',
time: '12:17',
counter: 1,
date: { Mon, 11 Feb 2013 17:17:36 GMT h: [Function: getHours] },
id: 'wide',
render: undefined,
reload: undefined,
not as fun as something like:
$ desckit -I 20 foggy
rendered Mon Feb 11 2013 12:29:55 GMT-0500 (EST)
rendered Mon Feb 11 2013 12:30:25 GMT-0500 (EST)
The Readme.md says
There are currently 3 mandatory script files:
script.ejs - This is the HTML template for the layout of the descktop wallpaper
script.js - This is the Server-side(!!) script to be ran when the script is requested. This runs in your NodeJS instance so you can configure it to do whatever you want that is supported by NodeJS
script.styl- This is the Stylus CSS source file that will generate a script.css file when needed
and I don't want to force people to use stylus.
27Mb ?
jweis at jweismbp01 in ~/mysrc/desckit on master*
$ du -sh
27M .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.