-
Couldn't load subscription status.
- Fork 146
Description
Is your feature request related to a problem? Please describe.
Allow to use Pug as a Template Engine. To be honest, It's my first time using this package; I typically use Pug because it allows me to iterate quickly, as it's not verbose. When I was trying to replicate the map example in Pug, I get a blank screen; screenshot below, but this doesn't happen with the HTML version; so I decided to check the inspector and realized; the ol-tile-layer was not rendered in the Pug version; I tried doing an inline html, sample below, and it wasn't rendering either. Then I tried putting anything under ol-view and once again, nothing was in the inspector. So I believe that might be a starting point.
Describe the solution you'd like
I'd like to be able to use this package in pug, basically. I don't see a reason why it shouldn't work, but there's a possible bug. -- I originally started this as a Bug Report, but then realized ol-view issue, I thought maybe it's by design, so I'd rather fill a proper request.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
This inline abomination;
<template lang="pug">
ol-map.map
|<ol-view ref='map' :center="[40, 40]" :zoom="userZoom" projection="EPSG:4326"> <ol-tile-layer> <ol-source-osm /> </ol-tile-layer> </ol-view>
</template>Originally as follows;
<template lang="pug">
ol-map.map
ol-view(ref='map' :center="[40, 40]" :zoom="userZoom" projection="EPSG:4326")
ol-tile-layer
ol-source-osm
</template>Additional context
Add any other context or screenshots about the feature request here.
