Skip to content
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

Asset support in pie format #13

Open
edeustace opened this issue Oct 20, 2016 · 0 comments
Open

Asset support in pie format #13

edeustace opened this issue Oct 20, 2016 · 0 comments

Comments

@edeustace
Copy link
Member

We need to define how assets are supported in the pie format.

Scenarios:

We may want to add an asset to the pie itself:

   pie/
      img.png

Then in the component:

    this.innerHTML = '<img src="???"></img>';

Or in less/css:

   .my-class{
     background-image: url('....'); 
   }

The content of the pie may contain images:

{ 
  choices: [
    { label: '<img src="???">' }
  ] 
}

So the questions are:

  • what are the rules by which you can load an asset into a pie
  • what happens if the pie and the config have an image of the same name?
  • are images in the config outside the scope of the pie?
  • do we bake in all images or bundle them?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant