<script>
	export let bar;
</script>

<div data-foo='bar'/>
<div data-foo='{bar}'/>