Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kendo Template scripts get messed up! #516

Closed
lamuertepeluda opened this issue Aug 29, 2014 · 3 comments
Closed

Kendo Template scripts get messed up! #516

lamuertepeluda opened this issue Aug 29, 2014 · 3 comments

Comments

@lamuertepeluda
Copy link

Hi,

I'm trying to beautify some code which uses kendo templates in HTML.
They are a kind of script tag which mixes html and javascript. The beautifier inserts spaces between the angular braces of some html element inside the tags. What can I do? Is this a bug/unsupported feature or a bad setting?

Example:

    <script type="text/x-kendo-template" id="LVI_User_Template">
        <a>
            <h2 data-bind="value: username">#: username #</h2>
            <img src="#: imgurl #" />
        </a>
        <a data-role="detailbutton" data-icon="compose"></a>
    </script>

becomes

        <script type="text/x-kendo-template" id="LVI_User_Template">
        < a >
            < h2 data - bind = "value: username" > #: username# < /h2>
            <img src="#: imgurl #" / >
            < /a>
        <a data-role="detailbutton" data-icon="compose"></a >
        </script>

which causes my app not to display correctly.

Any solution is welcome! Thanks in advance

@JoseGoncalves
Copy link
Contributor

It was because of that that I made #494

@lamuertepeluda
Copy link
Author

Thanks Jose, I'll try your fork while it waits for getting merged.

@bitwiseman
Copy link
Member

Fixed with #494.

@bitwiseman bitwiseman added this to the v1.5.2 milestone Jun 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants