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

https://github.com/mxcl/bs

Write HTML inline with your JS
https://github.com/mxcl/bs

Last synced: 11 months ago
JSON representation

Write HTML inline with your JS

Awesome Lists containing this project

README

          

# THIS PROJECT IS NO LONGER MAINTAINED.

You may be looking for the newer language by the same name here:

- [Bullscript Documentation](http://bullscript.io)
- [Bullscript GitHub](https://github.com/phil-daniels/bullscript)

# BullScript [![Build Status](https://travis-ci.org/mxcl/bs.svg?branch=master)](https://travis-ci.org/mxcl/bs)

BullScript compiles to Javascript.

Alpha Quality
=============
The test-suite no doubt has holes. So you may have to fix some bugs if you use
it at this stage. Development of BS stalled due to other engagements, but when
we stopped devleoping it, it was working well!

Examples & Usage
================
http://mxcl.github.com/bs/

Inline HTML Caveats
===================
You have to cleanly terminate your HTML tags. This is how the parser
determines where HTML ends. So if you start with a `

`, end with a `
`.
Though having said this, we understand tags like `` too. Also you can do
this:

```js
var a =

foo

blah
var b = 2;
```

Additionally, (currently) the parser will be confused by JavaScript of this
kind:

```js
if (a