2022.2

Table Of Contents
Includesdialog
TheIncludesdialogdefineswhichstylesheetsandJavaScriptfilesshouldbeappliedtoasectionwhen
generatingoutput(see:"StylingtemplateswithCSSfiles"onpage261andUsingJavaScript).
Toopenthisdialogandmakesettingsforonesection,right-clickthesectionontheResourcespane
andselectIncludes.
EmailclientsdonotreadCSSfilesandsomeevenremovea<style>tagwhenitispresentinthe
email'sheader.Nevertheless,CSSfilescanbeusedwiththeEmailcontextintheDesigner.
WhengeneratingoutputfromtheEmailcontext,allCSSrulesthatapplytothecontentoftheemailcan
beprocessedandaddedeithertotheheaderoftheemailortoinlinestylepropertiesasiflocalformat-
tingwasapplied,dependingontheEmailsectionproperties.See"Emailsectionproperties"on
page483.
1. FromtheFile typesdropdown,selectStylesheets,JavaScriptsorall.
2. Thelistattheleftdisplaysthestylesheetsand/orJavaScriptfilesthatarepresentinthetem-
plate'sresources.ThelistattherightshowsthestylesheetsandorJavaScriptfilesthatwillbe
includedintheoutputofthecurrentsection(orinallWebsections,ifyouaremakingsettingsfor
theWebcontext).UsetheIncludeandExcludebuttonstomovefilesfromonelisttotheother.
3. Filesareincludedintheordershown.Tochangethisorder,clickoneoftheincludedfilesand
usetheUporDownbutton.
Note: Thestylesineachfollowingstylesheetadduptothestylesfoundinpreviouslyread
stylesheets.Whenstylesheetshaveaconflictingruleforthesameelement,classorID,
thelaststylesheet‘wins’andoverridestherulefoundinthepreviousstylesheet.
JavaScriptProperties
TheJavaScriptPropertiesdialogappearswhenyouright-clickaJavaScriptfileontheResourcespane
andselectProperties.(Seealso:UsingJavaScript.)
Itcontainsthreeoptions:
l
Name:ThisoptionletsyourenametheJavaScriptresourceinthetemplate.Thelinkbetweenthe
JavaScriptfileandWebsectionsthatincludeitwillnotbebrokenbyrenamingthefile.(Seealso:
IncludingaJavaScriptfileinaWebcontext.)
l
Async:Whenasyncischecked,thescriptexecutesasynchronouslywiththerestofthepage
(whilethepagecontinuestheparsing).
l
Defer:Thisoptionpostponestheexecutionofthescriptuntilthepagehasfinishedparsing.This
isrequiredbyAPIslikeGoogleMaps.
Page 449