How do you resolve polymeric web components in Flask templates?

How do you resolve Polymer web components in Flask templates? My first thought was to copy the HTML component into the templates directory, but then I realized that they should be treated more like static files, right?

+3


source to share


1 answer


Yes, you have to unzip them into a static folder and then point to them as usual. After unpacking them, it should look like this (for each component you want to load):



<link rel="import" href="/static/bower_components/paper-fab/paper-fab.html">

      

+3


source







All Articles