All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperscala.examples.basic.ConnectedExample.scala Maven / Gradle / Ivy

The newest version!
package org.hyperscala.examples.basic

import org.hyperscala.examples.Example
import org.hyperscala.html._
import org.hyperscala.web.Webpage

/**
 * @author Matt Hicks 
 */
class ConnectedExample extends Webpage with Example {
  connected[tag.HTML] {
    case html => html.head.title := "Connected Example - Modified the Title"
  }

  body.contents += new tag.P {
    contents += "Uses Markup.connected[HTML] to invoke a function (in this case, changing the title of the page) " +
      "when HTML is available as an ancestor in the tree. This allows modular components to be created and access " +
      "the elements higher in the hierarchical structure when it is connected."
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy