djstevenson / songs-to-the-siren

A blog about songs
MIT License
0 stars 0 forks source link

Implement smarter links #211

Closed djstevenson closed 4 years ago

djstevenson commented 4 years ago

The idea of having a 'class' field in links was that we could use a template (or code) to generate completely different things from the links in the table.

e.g. we might have one class that says "this is an embedded youtube video", another for vimeo which needs different code, others for normal links, and maybe even some for links that pop up a NSFW or other interstitial first.

I suggest the Class identifies a Moose Role to render the link from the link record.

djstevenson commented 4 years ago

Fixed in #218 and #219