Expression

From bemoko developer wiki

Jump to: navigation, search

Background

bemokoLive expressions are used by many aspects of the configuration from UI groupings, to plugin availability.

By Example

device.value('resolution_width') >=320 Is the resolution width of the device greater than or equal to 320?
uri.endsWith('.css') Does the request URI end with css?
view.getRendering() == 'template' and !uri.endsWith('.css') Is the rendering from a template and the request URI does not end with css?
user.identity.inGroup('admin') Is the user in the group admin?
ui.is('320') Is the device a member of the 320 ui group?

You can test expressions on line in the bemoko test suite.