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)

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
but right now there's includes for basic, ??? for intermediate, and reshape/react-components for advanced
Behind The Beard
@Behind_Beard_twitter
Thanks dude. I'll check out preact-components. Maybe one day, I'll know enough to contribute! For now, I'll try out the preact stuff
Mangala Sadhu Sangeet Singh Khalsa
@msssk
yeah, like Jeff said, I created reshape-component to meet needs beyond reshape-include, but at a simpler level than React
if you want to have conditional content in your Reshape templates there's reshape-expressions
Mangala Sadhu Sangeet Singh Khalsa
@msssk
reshape-component is based on reshape-include and I haven't encountered any difference in its processing of data from locals
Behind The Beard
@Behind_Beard_twitter
Hmm, for some reason @msssk, when I try to use the {{}} syntax within my component, it just simply doesn't work. I don't know if it's due to the way I'm loading the component into my static site generator (Spike)
Jonathan Neal
@jonathantneal
Jeff Escalante
@jescalan
i had not, this is interesting though
i like jsx a lot better than this strange hybrid, but i know that that's just my opinion, man