Rotur
  • Getting Started
  • Your Connection
    • What is a websocket?
    • Connecting
      • Handshake
      • SetID
      • Link
    • Authentication
      • Get User Data
      • Login
    • Rotur Designations
    • Websocket Commands
      • Global Message (gmsg)
      • Private Message (pmsg)
      • Login to rotur (auth)
  • My Account
    • Rotur Account Objects
      • originOS specific keys
    • Requesting my ofsf storage
    • Rotur Badges
    • Transactions and Taxes
  • Assorted APIs
    • rMail
    • avatars.rotur.dev
      • .banners
    • rotur.dev/auth
    • Keys
  • languages
    • RWL
      • Basics
      • Structure
      • Attributes
        • Text
        • Frame
        • Section
      • Alignments and Anchors
    • RTR
      • Basics
      • Structure
      • Functions
        • Mathematical Functions
        • String Functions
        • Array Functions
        • Object Functions
        • Logical Functions
        • Utility Functions
      • Events
      • Examples
    • RDF
  • Claw
    • What is claw
    • Api Endpoints
      • /feed
      • /post
      • /follow
      • /unfollow
      • /followers
      • /following
      • /profile
      • /delete
      • /rate
      • /following_feed
      • /reply
      • /repost
      • /top_posts
      • /search_posts
      • /search_users
  • Web Standard
    • What is this
  • Addons / Extensions
    • Basic Structure
    • Events
      • onload
      • page_load
      • page_focus
    • API
      • Classes
        • Page
          • (static) .new()
          • .getTitle()
        • URL
          • (static) .new()
          • (static) .parse()
          • .format()
          • .getAsyncData()
          • .getFetchUrl()
          • .getTitle()
    • Commands
      • redirect
      • opentab
    • Variables
      • tab_info
      • page_width / height
      • scroll_x / y
Powered by GitBook
On this page
  • Displaying your first piece of text
  • Website Types
Edit on GitHub
  1. languages
  2. RWL

Basics

RWL (rotur web language) is a language that is used to structure rotur websites.

Displaying your first piece of text

In RWL all you need to show a peice of text on a page is:

root {
  "Hello World!"
}

The text itself must be in "", '' or ``, as these are used to figure out what type a value is.

You can also add more text elements, with commas inbetween each one:

root {
  "Hello World!",
  ":D",
  6
}

Website Types

RWL websites are generally in 2 different types:

Element based:

Uses elements to denote the layout and contents of a page.

// root is needed for element based websites
root {
  // code
}

Can be useful for more static and simple websites.

Script based:

Uses a script to draw the page (usually using RTR)

script [type="rtr"] {
  // rtr code
}

Can be useful for more dynamic and complicated websites that require custom graphics.

Drawing things with rtr can also be used on element based websites.

PreviousRWLNextStructure

Last updated 3 months ago