Skip to main content

module salix::HTML

rascal-0.40.17
salix-core-0.2.7

Usage

import salix::HTML;

Source code

http://github.com/usethesource/salix-core/src/main/rascal/salix/HTML.rsc

Dependencies

import salix::Node;
import salix::Core;
import List;
import String;

function text

void text(value v)

Create a text node.

function html

void html(value vals...)

The element render functions below all call build to interpret the list of values; build will call the second argument (_h1 etc.) to construct the actual Node values.

function head

void head(value vals...)

function script

void script(value vals...)
void link(value vals...)

function title {#salix-HTML-title}

void title_(value vals...)

function style {#salix-HTML-style}

void style_(value vals...)

function h1

void h1(value vals...)

function h2

void h2(value vals...)

function h3

void h3(value vals...)

function h4

void h4(value vals...)

function h5

void h5(value vals...)

function h6

void h6(value vals...)

function div

void div(value vals...)

function p

void p(value vals...)

function hr

void hr(value vals...)

function pre

void pre(value vals...)

function blockquote

void blockquote(value vals...)

function span

void span(value vals...)

function a

void a(value vals...)

function code

void code(value vals...)

function em

void em(value vals...)

function strong

void strong(value vals...)

function i

void i(value vals...)

function b

void b(value vals...)

function u

void u(value vals...)

function sub

void sub(value vals...)

function sup

void sup(value vals...)

function br

void br(value vals...)

function ol

void ol(value vals...)

function ul

void ul(value vals...)

function li

void li(value vals...)

function dl

void dl(value vals...)

function dt

void dt(value vals...)

function dd

void dd(value vals...)

function img

void img(value vals...)

function iframe

void iframe(value vals...)

function canvas

void canvas(value vals...)

function math

void math(value vals...)

function form

void form(value vals...)

function input

void input(value vals...)

function textarea

void textarea(value vals...)

function button

void button(value vals...)

function select

void select(value vals...)

function option

void option(value vals...)

function section

void section(value vals...)

function nav

void nav(value vals...)

function article

void article(value vals...)

function aside

void aside(value vals...)

function header

void header(value vals...)
void footer(value vals...)

function address

void address(value vals...)

function main

void main(value vals...)

function body

void body(value vals...)

function figure

void figure(value vals...)

function figcaption

void figcaption(value vals...)

function table

void table(value vals...)

function caption

void caption(value vals...)

function colgroup

void colgroup(value vals...)

function col

void col(value vals...)

function tbody

void tbody(value vals...)

function thead

void thead(value vals...)

function tfoot

void tfoot(value vals...)

function tr

void tr(value vals...)

function td

void td(value vals...)

function th

void th(value vals...)

function fieldset

void fieldset(value vals...)

function legend

void legend(value vals...)

function label

void label(value vals...)

function datalist

void datalist(value vals...)

function optgroup

void optgroup(value vals...)

function keygen

void keygen(value vals...)

function output

void output(value vals...)

function progress

void progress(value vals...)

function meter

void meter(value vals...)

function audio

void audio(value vals...)

function video

void video(value vals...)

function source

void source(value vals...)

function track

void track(value vals...)

function embed

void embed(value vals...)

function object

void object(value vals...)

function param

void param(value vals...)

function ins

void ins(value vals...)

function del

void del(value vals...)

function small

void small(value vals...)

function cite

void cite(value vals...)

function dfn

void dfn(value vals...)

function abbr

void abbr(value vals...)

function time

void time(value vals...)

function var

void var(value vals...)

function samp

void samp(value vals...)

function kbd

void kbd(value vals...)

function s

void s(value vals...)

function q

void q(value vals...)

function mark

void mark(value vals...)

function ruby

void ruby(value vals...)

function rt

void rt(value vals...)

function rp

void rp(value vals...)

function bdi

void bdi(value vals...)

function bdo

void bdo(value vals...)

function wbr

void wbr(value vals...)

function details

void details(value vals...)

function summary

void summary(value vals...)

function menuitem

void menuitem(value vals...)

function menu

void menu(value vals...)

function style

Attr style(tuple[str, str] styles...)

Attr style(map[str,str] styles)

function crossorigin

Attr crossorigin(str val)

function integrity

Attr integrity(str val)

function referrerpolicy

Attr referrerpolicy(str val)

function role

Attr role(str val)

function align

Attr align(str val)

function valign

Attr valign(str val)

function property

Attr property(str name, value val)

function attribute

Attr attribute(str name, str val)

function class

Attr class(str val)

function classList

Attr classList(tuple[str, bool] classes...)

function id

Attr id(str val)

function title

Attr title(str val)

function hidden

Attr hidden(bool h)

function \type

Attr \type(str val)

function \value

Attr \value(str val)

function defaultValue

Attr defaultValue(str val)

function checked

Attr checked(bool checked)

function placeholder

Attr placeholder(str val)

function selected

Attr selected(bool selected)

function accept

Attr accept(str val)

function acceptCharset

Attr acceptCharset(str val)

function action

Attr action(str val)

function autocomplete

Attr autocomplete(bool val)

function autofocus

Attr autofocus(bool val)

function disabled

Attr disabled(bool val)

function enctype

Attr enctype(str val)

function formaction

Attr formaction(str val)

function \list

Attr \list(str val)

function maxlength

Attr maxlength(int val)

function minlength

Attr minlength(int val)

function method

Attr method(str val)

function multiple

Attr multiple(bool val)

function name

Attr name(str val)

function novalidate

Attr novalidate(bool val)

function pattern

Attr pattern(str val)

function readonly

Attr readonly(bool val)

function required

Attr required(bool val)

function size

Attr size(int val)

function \for

Attr \for(str val)

function formm

Attr formm(str val)

function max

Attr max(str val)

function min

Attr min(str val)

function step

Attr step(str val)

function cols

Attr cols(int val)

function rows

Attr rows(int val)

function wrap

Attr wrap(str val)

function href

Attr href(str val)

function target

Attr target(str val)

function download

Attr download(bool val)

function downloadAs

Attr downloadAs(str val)

function hreflang

Attr hreflang(str val)

function media

Attr media(str val)

function ping

Attr ping(str val)

function \rel

Attr \rel(str val)

function ismap

Attr ismap(bool val)

function usemap

Attr usemap(str val)

function shape

Attr shape(str val)

function coords

Attr coords(str val)

function src

Attr src(str val)

function height

Attr height(int val)

function width

Attr width(int val)

function alt

Attr alt(str val)

function autoplay

Attr autoplay(bool val)

function controls

Attr controls(bool val)

function loop

Attr loop(bool val)

function preload

Attr preload(str val)

function poster

Attr poster(str val)

function \default

Attr \default(bool val)

function kind

Attr kind(str val)

function srclang

Attr srclang(str val)

function sandbox

Attr sandbox(str val)

function seamless

Attr seamless(bool val)

function srcdoc

Attr srcdoc(str val)

function reversed

Attr reversed(bool val)

function \start

Attr \start(int val)

function colspan

Attr colspan(int val)

function rowspan

Attr rowspan(int val)

function headers

Attr headers(str val)

function scope

Attr scope(str val)

function async

Attr async(bool val)

function charset

Attr charset(str val)

function content

Attr content(str val)

function defer

Attr defer(bool val)

function httpEquiv

Attr httpEquiv(str val)

function language

Attr language(str val)

function scoped

Attr scoped(bool val)

function accesskey

Attr accesskey(str char)

function contenteditable

Attr contenteditable(bool val)

function contextmenu

Attr contextmenu(str val)

function dir

Attr dir(str val)

function draggable

Attr draggable(str val)

function dropzone

Attr dropzone(str val)

function itemprop

Attr itemprop(str val)

function lang

Attr lang(str val)

function spellcheck

Attr spellcheck(bool val)

function tabindex

Attr tabindex(int val)

function challenge

Attr challenge(str val)

function keytype

Attr keytype(str val)

function _cite

Attr _cite(str val)

function \datetime

Attr \datetime(str val)

function pubdate

Attr pubdate(str val)

function manifest

Attr manifest(str val)

function cellpadding

Attr cellpadding(str val)

function cellspacing

Attr cellspacing(str val)

function onKeyPress

Attr onKeyPress(Msg(int) msg)

function onKeyDown

Attr onKeyDown(Msg(int) msg)

function onClick

Attr onClick(Msg msg)

function onDoubleClick

Attr onDoubleClick(Msg msg)

function onMouseDown

Attr onMouseDown(Msg msg)

function onMouseUp

Attr onMouseUp(Msg msg)

function onMouseEnter

Attr onMouseEnter(Msg msg)

function onMouseLeave

Attr onMouseLeave(Msg msg)

function onMouseOver

Attr onMouseOver(Msg msg)

function onMouseOut

Attr onMouseOut(Msg msg)

function onClickXY

Attr onClickXY(Msg(MouseXY) f)

function onDoubleClickXY

Attr onDoubleClickXY(Msg(MouseXY) f)

function onMouseDownXY

Attr onMouseDownXY(Msg(MouseXY) f)

function onMouseUpXY

Attr onMouseUpXY(Msg(MouseXY) f)

function onMouseEnterXY

Attr onMouseEnterXY(Msg(MouseXY) f)

function onMouseLeaveXY

Attr onMouseLeaveXY(Msg(MouseXY) f)

function onMouseOverXY

Attr onMouseOverXY(Msg(MouseXY) f)

function onMouseOutXY

Attr onMouseOutXY(Msg(MouseXY) f)

function onSubmit

Attr onSubmit(Msg msg)

function onBlur

Attr onBlur(Msg msg)

function onFocus

Attr onFocus(Msg msg)

function onCheck

Attr onCheck(Msg(bool) f)

function onInput

Attr onInput(Msg(str) f)

Attr onInput(Msg(int) f)

Attr onInput(Msg(real) f)

function onChange

Attr onChange(Msg(int) f)

Attr onChange(Msg(real) f)

Attr onChange(Msg(str) f)

Attr onChange(Msg(bool) f)

function succeed

Hnd succeed(Msg msg)

Smart constructors for constructing encoded event decoders.

function targetValue

Hnd targetValue(Msg(str) str2msg)

function targetChecked

Hnd targetChecked(Msg(bool) bool2msg)

function keyCode

Hnd keyCode(Msg(int) int2msg)

function targetInt

Hnd targetInt(Msg(int) int2msg)

function targetReal

Hnd targetReal(Msg(real) real2msg)

function mouseXY

Hnd mouseXY(Msg(MouseXY) xy2msg)

function jsonPayload

Hnd jsonPayload(Msg(map[str,value]) json2msg)