[untitled]
2 pointsby rolae0 comments
<div data-controller="iframe-preview" data-iframe-preview-url="<%= preview_path(@letter) %>">
<form data-target="iframe-preview.form">
<textarea name="body">My letter</textarea>
</form>
<iframe data-target="iframe-preview.iframe">
</div>
This is when StimulusJS becomes really nice, when you can compose behavior in your markup with some simple data attributes. I did not think at first that I would need this controller in other places, but a couple of weeks later, I actually needed it, and was able to reuse the controller without modification for another use case. * Date of incident
* Short description of context
* Primary source, or at least, where the video was found
* Media coverage of incident
* Updates on convictions/official investigations into the incident
* Official statements / responses
* linked videos (videos of the same incident, but with other view-angle)
Otherwise it will just be a collection of outrage, if you don't give real data to put things into context.