Coder Social home page Coder Social logo

Comments (6)

bigopon avatar bigopon commented on June 8, 2024 2

It seems we could really use some doc describing this scenario to help future folks. Would be great if you could help with this @koenbeuk ❤️

from templating.

bigopon avatar bigopon commented on June 8, 2024

@koenbeuk thanks for filing this issue. And sorry that somehow I missed it until now. The issue you encountered is because how Aurelia turns a template (or a html file content) into a view factory: it is first passed through native HTML5 parser via simple innerHTML. This means invalid HTML5 structure (like <td/> as a direct child of template, but not the only child type) will be processed differently. In this case, it just gets dropped.

What can be done to avoid this is to make sure only TDs are children of <template/>:

<template>
  <td>
    <require from="..."></require>
  </td>
</template>

Can you try the aboe?

from templating.

bigopon avatar bigopon commented on June 8, 2024

Here is an example of it working: https://gist.run/?id=45a7d62b74673e35ed667412085baa7d

from templating.

koenbeuk avatar koenbeuk commented on June 8, 2024

@bigopon Thanks for the example, I already got it working that way :)

from templating.

bigopon avatar bigopon commented on June 8, 2024

@koenbeuk nice. I guess we can close this issue?

from templating.

koenbeuk avatar koenbeuk commented on June 8, 2024

It's not blocking me anymore, feel free to close if you deem best

from templating.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.