Skip to content

Uncompressed content

Carl Calderon edited this page Jun 15, 2013 · 1 revision

Since HTML files often contain more than just HTML such as CSS and JavaScript, liten provide syntax for defining blocks of uncompressed or untouched content. These uncompressed blocks of data is defined by encapsulating code within two ``` tags.

Input:

html
  head
    script@type="text/javascript"
      ```
      function init() {
        alert('_o/\o_ highfive!');
      }
      ```
  body
    @onload="init()"

Output:

<html>
  <head>
    <script type="text/javascript">
      function init() {
        alert('_o/\o_ highfive!');
      }
    </script>
  </head>
  <body onload="init()"/>
</html>
Clone this wiki locally