<script>
	let bgImage = 'https://example.com/foo.jpg';
	let color = 'red';
</script>

<div style="background-image: url('{bgImage}'); color: {color};">{color}</div>
