-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
content stripped of elements when rendered #178
Comments
NICE FIND @Robertchristopher I remember back in the bad old days (2 or so years ago) there was some issue with inserting table rows. This may be it but I know there's a way around it. Will do some digging today. /cc @brandondees @tmornini @btakita @rianby64 @janz93 |
@snuggs very inspired by snuggsi & the philosophy here, its a large step away from the corporate code that powers the world wide web. I see myself as more of a `devpunk' haha & am inspired to deconstruct down to the platform layer. its a powerful foundation to reconstruct over & I've been shifting my perception of development. this gem by @tmornini really woke me up. https://slack-files.com/T03JT4FC2-F151AAF7A-13fe6f98da theres an art to building conventions and connecting them into larger flows. the medium of the web is shifting to web components & using the structure of links. a lot of these early web component frameworks are building complex solutions ( polymer ), which are early implementations. I'd prefer to plant my own seeds right on top of the platform & grow strong roots, building my own conventions. its an art of self expression thats not injected with corporate framework. frameworks are competitive but snuggsi is complementary which is why I've really enjoyed working with it. another project that has really opened my mind is cell.js ( https://www.celljs.org ). plain old javascript objects are simple. simple is better than complex! @snuggs been trying to get in contact man & get a hangout. I'd love to start contributing to snuggsi as I want to build all my creations over this architecture. small building blocks can build the stepping stones to large empires! |
@Robertchristopher Thanks for the mention, but I did write that post — though I agree with it. I may have shared it, it feels familiar. 😎 |
@Robertchristopher @tmornini found a good example of our scope. Because remember snuggsi is just automation of boilerplate to use what's already in the platform. Seems like we can iterate table rows so that's a good sign. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template#Example |
@snuggs exactly, very simple. i'll do some self digging around the codebase to become more familiar. we are tree shaking the DOM of all its dependencies & stripping it to small templating. thats all you ever needed, simple man.... |
@snuggs intuition brought me into here https://github.com/devpunks/snuggsi/blob/master/token-list/index.es ... |
@Robertchristopher can you throw up a jsfiddle with a repro(duction) of the issue? Best part is you souldn't have to include any dependencies other than the HTML you provided. Then we can wrap a test case around it and wrap it up with an example with documentation since you've pretty much championed an example most of the way there. @tmornini @brandondees @rianby64 and now we see the power of the library. #UseThePlatform |
@Robertchristopher @rianby64 @btakita I have been investigating this issue the past couple weeks and think we have a wrangle on things. We have some good news and bad news: Bad News
This is an active problem which creates need for libraries to wrap html strings in appropriate parent tags. Remedies
(Now on to the) Good NewsIt is assumed a table cannot be created without a comment by using a template representing a partial aspect of the table. Claims (Cannot create partial tables with templates): Claim: Partial attributes and attributes without quotes Our following examples hold this to not be true: JSFiddle with table rows Remedies[ ] Use Ranges in
|
hey, the template is rendering the content as plain text, stripping the
<tr> / <td>
elements. @snuggsoutput: `
`
The text was updated successfully, but these errors were encountered: