breck7 / scrollsdk

Build on top of Scroll.
https://sdk.scroll.pub
380 stars 17 forks source link

Add support for inline components to Stump #115

Closed breck7 closed 3 years ago

breck7 commented 3 years ago

Should be easy to build your own web components in a stump file.

Also, what's a better name for stump?

socialComponent
 div
  class chrome icons
  a {emailSvg}
   href mailto:{email}
  a {twitterSvg}
   href http://twitter.com/{twitter}
  a {githubSvg}
   href {github}
html
 head
  titleTag {title}
  styleTag
   bern
 body
  socialComponent
  h1 {title}
   class chrome title
  div {description}
   class chrome description
  div
   class meat
   div
    class page
    div
     class articleCell
     h3 Article title
     div Here is some content. I dont know what to think about it. But it sounds coool.
    div
     class articleCell
     h3 Article title
     div some content
    div
     class articleCell
     h3 Article title
     div some content
    div
     class articleCell
     h3 Article title
     div some content
  socialComponent
breck7 commented 3 years ago

added