Giter Club home page Giter Club logo

pajama-js's Introduction

Pajama-JS, aka 'pjs'

The website for this project can be found in /website.

Getting Started

To load all the necessary dependancies for testing: make install

To run the backend PajamaJS Vows tests: node test/backend/test.js

To run the frontend PajamaJS QUnit tests: node test/frontend/server.js then browse to localhost:8080

To run the clientside PajamaJS demo: node demo/clientside/server.js then browse to localhost:8080

To run the serverside PajamaJS demo: node demo/serverside/server.js then browse to localhost:8080

To run the inverted PajamaJS demo: node demo/inverted/server.js then browse to localhost:8080/index

To run the nativeApp demo: ./demo/native/sampleApp.js

After making any changes to the src folder: make build

pajama-js's People

Contributors

theninj4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bradparks

pajama-js's Issues

toMarkup error

Using browser.pajama.js, and trying to toMarkup an element gives back an error:

"TypeError: Cannot call method 'toMarkup' of undefined
at PjsElement.self.toMarkup (http://192.168.56.101:5000/vendor/pajama/browser.pajama.js:332:51)
at PjsElement.self.toMarkup (http://192.168.56.101:5000/vendor/pajama/browser.pajama.js:332:51)
at :2:6
at Object.InjectedScript._evaluateOn (:581:39)
at Object.InjectedScript._evaluateAndWrap (:540:52)
at Object.InjectedScript.evaluate (:459:21)"

This happens when running the example at http://www.pajamajs.com/serverside.html
It appears to be trying to call "Hello World"._view.toMarkup() on line 331. Obviously, "Hello World" doesn't have a _view property.

security considerations

Thanks for sharing awesome library.

Do your implementation has security considerations like disallowed tags and escaping.

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.