Sha256: 7991c66601d58c19b4995caa4398b3b0096cbda0cbbb09b78154c5de333c1cec

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

* Emerald Language

doctype html

html
  head
    styles
      "css/main.css"
      "css/vendor/bootstrap.min.css"

    scripts
      "js/script.js"
      "js/other_script.js"

    style
      var black = #333
      var blue = #0066ff

  body
    header
      h1 Emerald
      h2 An html5 markup language designed with event driven
      applications in mind.

    main
      section
        h1 Why use Emerald?
        p Emerald allows you to scope events and styles to html
        elements in an elegant, clean way.

      figure
        figcaption Here's an example of elements scoped in a
        button here.

        button Click me. (
          click -> console.log("I was clicked!")
          hover -> console.log("I was hovered!")
        )

    footer (
      hover ->
        this.border = 1px solid @blue
        this.text-shadow = 0px 0px 8px 2px rgba(0,0,0,0.3)
    )
      p Like what you see? Check out the docs for more samples.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emerald-lang-1.0.0 sample.emr