HTML Dialect

HTML Dialect 0.0.5

Just a slight bugfix in the form select tag to allow it to use values for inputs. This increases the version number to 0.0.5.

And oh, now there is documentation. Happy So I consider this to be the first real release, though still in the alpha stage, because the design of the dialect is not 100% set in stone. There are many improvements since 0.0.3, but I’m sure there are many more that can be made. If you have suggestions, or bug reports, please don’t hesitate to sound off in the comments or in AltME.

The HTML dialect can be found in the Downloads area.

Enjoy!
|

HTML Dialect 0.0.4

I’m releasing version 0.0.4 now, as I feel there will be a need for many more changes, but I won’t keep the current changes under wraps any longer.

Some changes are:

- Added OUTPUT-HTML function for direct HTML output to console.
- Code reorganized and cleaned up
- Some testing of the dialect using a testing framework.
- Dynamic input allowed for all inputs (cell-types and href-types)
- Traverse and loop work better now
- Tag rules for common HTML tags
- Private testing framework should increase the reliability of the dialect.

I also removed automatic formatting for links via a page list. I thought at first this was a good idea to include, but it has deeper ramifications than I first calculated and in fact can be a small project in itself. So to avoid ballooning the HTML dialect, this functionality has been removed. I’m contemplating a site dialect where such functionality can be more useful along with other site oriented functions.

Documentation is going up very soon. Documenting a dialect can be a surprisingly comprehensive thing, despite only being 350 lines of code, so this has taken a few days to complete, and I’m not entirely done yet.

There are some known bugs still:

- <script> is sometimes a single and sometimes a double tag. It’s currently treated as a double tag
- Cell-types results are not stackable
- Problems with nested traverse.

The forum is currently driven by version 0.0.4 of the dialect and so far it runs fine.

Notice also I’ve rearranged the HTML dialect directory so each version is stored under its own directory, so if you are loading the dialect directly from my site, you should use:

do http://www.hmkdesign.dk/rebol/html-dialect/src/0.0.4/html.r


Where you replace “0.0.4” with the version number you desire. See here for a listing of available versions.
|

HTML Dialect 0.0.3

I’ve made a new version of the HTML dialect, this time version 0.0.3 with some improvements:

- Better support for META tags and CSS per page.
- Support for redirects.
- Support for forms and server side form auto-filling.
- Cleaned up source code.
- Support for all doctypes and renders XHTML tags correctly. This code lays a good foundation for complete standards compliance.
- Recognizes tags that have no end tag and render them correctly.
- HTML-PARSE is now named HTML-GEN. You might want to know that in case you want to use it. Happy
- Fixed a lot of word leaks.

There is no documentation available yet, so you’ll have to see if you can figure the dialect out with the parser in the source code. Happy Otherwise ask me on AltME.

Version 0.0.3 is available in the download section.

Enjoy!
|

HTML Dialect Release

I'm now releasing the first alpha version of the HTML dialect that I intend to use for REBOL/Forum. I hope this will grow into a solid and extensive dialect later, but for now I feel the need to get it out among you, so you can study it and perhaps improve on it.

The dialect is meant to allow you to write HTML code without ever leaving the beloved REBOL syntax. The dialect syntax is also very small, letting you write very compact webpages. An example:

html-parse [page "My page" css style.css [div title "My webpage"]]

Produces this webpage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My page</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body><div class="title">My webpage</div></body>
</html>

Read more examples in the documentation. As usual, the code is available in the Downloads section.

I hope you'll like this! Enjoy!

Edit: Fixed link to documentation. RapidWeaver does not like relative links in blog posts.
|