How can one determine if the Template is being published to a site with SiteEdit/XPM enabled?
When Experience Manager is installed, Publication Target in the CME has a flag "Enable for inline editing". When this flag is selected a tab with XPM configuration options appears.
Is it possible to access the value of this flag in a TBB? If not, is there some other way to determine if a given Component or Page is being rendered and published to a SiteEditable location? One of I thought of is by specifying the list of publications having SiteEdit enabled in the parameters of a template. Is there a more elegant way?