Scope in dev

When developing Masa CMS Themes or Plugins the m scope is available. This is referred to as the ‘Masa Scope’.

The $ scope (‘dollar scope’) and mura scope are deprecated and should not be used anymore.

Examples

You can use the m scope in your template like so:

m.siteConfig('assetPath')

Or

m.dspCarouselByFeedName(
	feedName='Slideshow'
	, showCaption=true
	, cssID='myCarousel'
	, size='carouselimage'
	, interval=5000
	, autoStart=true
)

This example is using the MasaBootstrap5 Theme; The function dspCarouselByFeedName in the contentRenderer.cfc is called via the m scope. Also the function available through Masa Plugins are available:

m.muraLocations.dspFindLocationsForm()

This example is using the MuraLocations Plugin. The function dspFindLocationsForm in the Eventhandler.cfc is called via the m scope.