neos / fusion-afx

[READ-ONLY] JSX inspired compact syntax for Neos.Fusion
GNU General Public License v3.0
25 stars 9 forks source link

Supported HTML comments, IE conditional comments and CDATA #15

Open gerdemann opened 6 years ago

gerdemann commented 6 years ago

It should be possible to use HTML comments, IE conditional comments and CDATA blocks in AFX.

Example:

renderer = afx`
    <!-- My comment -->
    <div>Test</div>

    <!--[if lt IE 7 ]>
        Please update your browser.
    <![endif]-->    

    <script>
        <![CDATA[
            var foo = 'bar';
        ]]>
    </script>
`
kdambekalns commented 4 years ago

See https://github.com/neos/fusion-afx/pull/27 - at least HTML comments should be fixed by now…