Code Monkey home page Code Monkey logo

desckit's People

Contributors

elis avatar weisjohn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

meteorsnows

desckit's Issues

Use template-literal instead of EJS

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 ๐Ÿ˜€

better download instructions and support on Windows

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.

replace console.log with debug to clean up command line execution

$ 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)

make stylus optional

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.