Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 19:02
    jescalan commented #78
  • May 31 19:42
    HoldYourWaffle commented #78
  • May 31 17:06
    jescalan commented #78
  • May 13 22:20
    HoldYourWaffle commented #78
  • May 13 17:09

    jescalan on v1.0.1

    (compare)

  • May 13 17:09

    jescalan on master

    1.0.1 (compare)

  • May 13 14:33
    jescalan commented #79
  • May 13 12:53
    HoldYourWaffle commented #79
  • May 08 15:08

    jescalan on master

    update custom elements plugin (compare)

  • May 08 14:57
    jescalan closed #65
  • May 08 14:57
    jescalan commented #65
  • May 08 14:56

    jescalan on master

    Fix broken links in README (compare)

  • May 08 14:56
    jescalan closed #80
  • May 08 14:56
    jescalan closed #77
  • May 08 14:56
    jescalan closed #76
  • May 08 14:56
    jescalan closed #75
  • May 08 14:56
    jescalan closed #74
  • May 08 14:56
    jescalan closed #72
  • May 08 14:56
    jescalan closed #58
  • May 08 14:55

    jescalan on master

    dep update, travis node version… (compare)

zwerdlds
@zwerdlds
Thanks for your help, and thanks for the project!
Jeff Escalante
@jescalan
you got it!
Jonathan Neal
@jonathantneal
I’ve updated Reshape Hfill to support transforming contextual headings (<h>) into HTML5 compatible headings (<h1> - <h6>) https://github.com/jonathantneal/reshape-hfill/
Jeff Escalante
@jescalan
:100:
sakhnenko
@sakhnenko
The TRY THIS OUT on https://reshape.ml/ doesn't seem to work
Jeff Escalante
@jescalan
i know, im sorry! the service behind it has some issues
Mangala Sadhu Sangeet Singh Khalsa
@msssk
does anyone have advice for using components with reshape?
I'm probably on my way to using SkateJS, but in the meantime trying to get a little more mileage out of somewhat plain HTML templates
I've extended reshape-include to provide somewhat more configurable component-like includes:
https://github.com/mkdecisiondev/reshape-component
but I'm wondering if a better approach exists
Jeff Escalante
@jescalan
reshape-preact-components is the ultimate
or react
you write a p/react component, it renders to static, you can rehydrate on the client side if needed
Mangala Sadhu Sangeet Singh Khalsa
@msssk
thanks
I think ultimately that's where I'm headed
but in the near-term we want to get some more mileage out of HTML templates
Jeff Escalante
@jescalan
I don't have a solution for that right now
I have various thoughts and plans on how to make one
but I haven't had the need nor the time to make it myself
if you want to work on it, i'd be happy to help
Mangala Sadhu Sangeet Singh Khalsa
@msssk
I think this will get us pretty far:
https://github.com/mkdecisiondev/reshape-component
I've taken reshape-include and added some parameterization to it
Jeff Escalante
@jescalan
thats great! is that solving your issue
or are you still having problems
Mangala Sadhu Sangeet Singh Khalsa
@msssk
no, I'm pretty happy with it
Jeff Escalante
@jescalan
:raised_hands:
then you have made something great!
Mangala Sadhu Sangeet Singh Khalsa
@msssk
it allows me to specify extra attributes and content and have that passed through to the included template
Jeff Escalante
@jescalan
this is something a good number of people have expressed interest in
Mangala Sadhu Sangeet Singh Khalsa
@msssk
I'll try and publish it to npm soon
for now it's public on github
Jeff Escalante
@jescalan
yeah definitely, once it's on npm, try dropping it into the static dev slack
im sure some people would be interested there as well
Mangala Sadhu Sangeet Singh Khalsa
@msssk
👍
Avi Goldman
@avigoldman

Hey everyone 👋 just found and am starting to play around. Looks awesome!

I hit an error running the example in the plugin-util repo - reshape/plugin-util#30

Jeff Escalante
@jescalan
Hey @avigoldman! Thanks so much for catching this and for the contribution :)
Avi Goldman
@avigoldman
'Course 🙌
Behind The Beard
@Behind_Beard_twitter
Hey guys, how's it going. I'm new to using Reshape and I'm struggling to find any information on if it is possible to log the objects to the browser console log?
I want to inspect an object that is being passed to Reshape, but have no idea how to do it
Jeff Escalante
@jescalan
Hey sorry got the late response! You can do {{ JSON.stringify(obj) }} in your view to log it out
Behind The Beard
@Behind_Beard_twitter
Thanks @jescalan that worked!
Behind The Beard
@Behind_Beard_twitter
I'm attempting to use reshape-component, but I wanted to use the reshape expressions {{}} tags, but these don't seem to work. All I want to do really is use <include src="file.html"> and pass through a string value that can be used in the include file, but I wanted access to the locals object..
Behind The Beard
@Behind_Beard_twitter

I've just re-read my previous comment and realised it makes absolutely no sense.

I am using Reshape with Spike and all of my data is stored in the local variable. I currently have an include that pulls in some HTML. This uses reshape-expressions to run a loop through my data fetched from my api. In this instance I have an array of an object called CTA. The problem I'm having is that I want to build a single component for CTAs that can be used on multiple pages.

So, in my included file I want to have a reshape-expression condition that says if CTA.tag == VARIABLE then show component I'd also like to pass in an integer to say how many items from the array to show.

I thought reshape-component would solve this problem, but when using the reshape-expression variable tags: {{}}, the component doesn't recognise my locals object. It seems that components only have access to the properties assigned to them.

What is the best approach for this?

Jeff Escalante
@jescalan
personally, i use this library for components
it is not the perfect use case for beginner, or even intermediate developers/sites
it is very advanced
however, it has nearly limitless power
there is a big hole in the ecosystem right now that reshape-component, i think, is an attempt to fill, which is a component system that's not as advanced
i did not write reshape-component, so maybe the author would be able to support