https://github.com/devinrhode2/psn
PHP style node
https://github.com/devinrhode2/psn
Last synced: about 2 months ago
JSON representation
PHP style node
- Host: GitHub
- URL: https://github.com/devinrhode2/psn
- Owner: devinrhode2
- License: mit
- Created: 2012-10-27T02:16:33.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-20T17:25:09.000Z (almost 13 years ago)
- Last Synced: 2025-10-28T05:12:09.016Z (5 months ago)
- Language: JavaScript
- Homepage: http://NowYoureHipster.com/
- Size: 758 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP style node, psn
Broke right now, need to update express node module to the latest version and probably all the other modules.
Same thing as PHP except you get to use javascript code in place of php code. Code delimiters are `<%` and `%>`
## Example
Here's some html.
<%= 'Heres some dynamic output'+user.name %>
## Install/Setup/Usage/slash
* 1: Create new folder and put an empty server.js file in it
* 3: Put `require('psn').startServer()` in the file.
* 4: Open the Terminal or Command Prompt at this directory and run:
```
npm install devinrhode2/psn
//This will fail if you don't have the latest version of node and npm
```
* 5: Create a site. Use .ejs files instead of .php. Good luck with databases or doing anything really interesting. I'm sarcastically serious.
* 2: `undefined`
## Contributing
At this point you should really contribute if you use this, or consider feeding me to enhance it. [Please follow the guidelines.](/devinrhode/psn/blob/master/CONTRIBUTING.md)
## Haters
Should refer to psn as __Not PhotoShop__ the carry on the acronym mis-ordering of php, __hypertext pre-processor__, this will assure it doesn't become widely known. The meanest way to hate is silently, so this is a compromise to simply aschew and confuse others about the meaning of the acronym `psn`
## Trolling
Issues tab is a fun place for this. However, Hardcore trolling(R) takes in the pull requests tab. Ideally the psn(R) project prefers really useful but sneakily shitty code that will bite people in the ass later. Failing silently, mis-naming functions, and leaking memory are all favorable things with psn. Code that fails to do this will probably not be accepted.
# TAKE ME SRSLY, FOLLOW @DEVINRHODE2