Created
May 23, 2009 18:57
-
-
Save ocharles/116729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[%- 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