Mura Tags & Number/Hash Signs
As a developer, it's important to understand what Mura tags are "
[mura]…[/mura]", when to use them, and where to use number/hash signs "
Since you're a CFML developer, you already know that CFML treats text that is surrounded by number signs (#) as a CFML variable or function call. For example, the following code displays the text "Hello World!":
However, in order for this to work, the code would have to be contained in a .CFM file, and parsed by a CFML server. For example, the code would have to be written on one of your theme's layout templates. Such as:
But what if you want to output dynamic code that has been entered in a form field, such as the Content area of a Page? If you were to enter the same line of code,
#$.content('body')#, in the WYSIWYG editor, it would not get parsed by the server because it's not written on a .CFM file. The Mura tag "
[mura]…[/mura]" allows developers to get around this issue.
Use Mura tags when you want to output a variable or function call inside of form fields such as the WYSIWYG editor, and you're not directly in a template.