An open API service indexing awesome lists of open source software.

https://github.com/devinrhode2/psn

PHP style node
https://github.com/devinrhode2/psn

Last synced: about 2 months ago
JSON representation

PHP style node

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