Wysmedia.com

Icon

~ We make IT easy for you ~

which one you prefer ?

I just having thought of current JavaFx that using syntax that looks like Groovy DSL. I think it is fun to have a syntax like that, instead of using XML. I hate XML you know ….

Which one you like ?

<html>
    <body>
        <table>
            <tr>
                <td> something here </td>
                <td> something here too </td>
                <td> something here as well</td>
            </tr>
             <tr>
                <td> another line here </td>
                <td> another line here too </td>
                <td> another line here as well</td>
            </tr>
        </table>
        <a href="http://wysmedia.comyr.com"> wysmedia</a>
    </body>
</html>

or

html{
    body{
        table{
            tr{
                td{"something here"}
                td{"something here too"}
                td{"something here as well"}
            }
            tr{
                td{"another line "}
                td{"another line too"}
                td{"another line as well"}
            }
        }
        p{
            h2{"a paragraph"}
            a{
                href:"http://wysmedia.comyr.com"
                title:"link to wysmedia"
                "wysmedia.com"
            }
        }
    }
}

which one you like the most ?

Category: Fun, My Thought, Programming

Tagged: , ,

One Response

  1. Hello,

    I really like the first one, it makes me feel confortable thinking some other poeple will work on the design as I’m working in the rest of the app.

    Traditional HTML with gsp easy-syntax let me teach in a little time for some designers how I need them working in my grails application.

    Thank you for your visit on my blog!

Leave a Reply