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.

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)