« get me outta code hell

linkFlashAct.js « dependencies « content « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkFlashAct.js
blob: fbb819edd4c19c045af68ca902432eaf6a178536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export default {
  contentDependencies: ['linkThing'],
  extraDependencies: ['html'],

  relations: (relation, flashAct) =>
    ({link: relation('linkThing', 'localized.flashActGallery', flashAct)}),

  data: (flashAct) =>
    ({name: flashAct.name}),

  generate: (data, relations, {html}) =>
    relations.link
      .slot('content', new html.Tag(null, null, data.name)),
};