This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
Releases: micheltlutz/jumpper
Releases · micheltlutz/jumpper
0.0.9
0.0.8
- Doctype
let doctype = Doctype()
doctype.getString() // or doctype.generate()
- Body
let body = Body()
body.add(/* Any Element*/)
- Head
let head = Head()
head.add(/* Any Element*/)
- Html
let html = Html()
html.add(/* Any Element*/)
- LinkStylesheet
let linkCssTag = LinkStylesheet("/styles/milligram.min.css")
- Link
let linkTag = Link("/styles/milligram.min.css", attributes: ("rel", "stylesheet"))
- Meta
let meta = Meta(("charset", "utf-8")))
- Script
let script = Script()
script.add("var myJsVar = 1")
let script = Script(("src","myScript.js"))
- Title
let pageTitle = Title("This is Page.")
- Footer
let footer = Footer()
footer.add(/* Any Element*/)
- Header
let header = Header()
header.add(/* Any Element*/)
0.0.7
New Composite class to group elements without tag
Fix init
Usage
let element = CompositeElements()
element.add("Hello, World!")
element.add(Label("My Label"))
// output: Hello, World!<label>My Label</label>
New Struct factory FactoryElements to remove duplicated functions
Usage
let element = FactoryElements.textWith("Hello, World!")
0.0.6
New Composite class to group elements without tag
Usage
let element = CompositeElements()
element.add("Hello, World!")
element.add(Label("My Label"))
// output: Hello, World!<label>My Label</label>
New Struct factory FactoryElements to remove duplicated functions
Usage
let element = FactoryElements.textWith("Hello, World!")
0.0.5
Little fix change class Fieldset to public.
Usage Example:
let fieldset = Fieldset()
let labelName = Label("Name")
labelName.addAttribute(("for", "nameField"))
fieldset.add(labelName)
let inputName = InputText("", id: "nameField", placeholder: "Name")
fieldset.add(inputName)
let labelAge = Label("Age Range")
labelAge.addAttribute(("for", "ageRangeField"))
fieldset.add(labelAge)
0.0.4
- Chance access
func add
permission inContainerElementBase.swift
0.0.3
Update Package
- Remove platform restrictions from Package.swift
0.0.2
This Version add new unit tests, normalize components and add documentation.
0.0.1
Starter version