Skip to content

Instantly share code, notes, and snippets.

@ocharles
Created May 23, 2009 18:57
Show Gist options
  • Save ocharles/116729 to your computer and use it in GitHub Desktop.
Save ocharles/116729 to your computer and use it in GitHub Desktop.
[%- MACRO link_entity(entity, action, text) BLOCK;
type = "$entity";
IF type.search('Entity::Artist='); link_artist(entity, action, text);
ELSIF type.search('Entity::Work='); link_work(entity, action, text);
ELSIF type.search('Entity::Label='); link_label(entity, action, text);
ELSIF type.search('Entity::Release='); link_release(entity, action, text);
ELSIF type.search('Entity::ReleaseGroup='); link_release_group(entity, action, text);
END;
END -%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment