2022.2

Table Of Contents
Using a remote style sheet
Aremotestylesheetisnotlocatedwithinyourtemplatebutislocatedinanetworkfolderorhostedon
anexternalwebserver(generallycalledaCDN).
Toaddaremotestylesheet:
1. Right-clicktheStylesheetfolderontheResourcespane,andclickNew Remote Stylesheet.
2. EnteranameforthefileasitappearsintheStylesheetresources.Forbettermanagement,it's
besttousethesamefilenameastheremoteresource.
3. EntertheURLfortheremoteresource.Ifthefileislocatedonanexternalwebserver,thismust
beafullURL,includingthehttp://orhttps://prefix,domainname,pathandfilename.
IfthefileislocatedonyournetworkyoucanclicktheBrowsebuttonorenterthepathandfile
namemanually.Thecompletesyntaxwiththe"file"protocolis:file://<host>/<path>.Ifthe
hostis"localhost",itcanbeomitted,resultinginfile:///<path>,forexample:file:///c:/re-
sources/images/image.jpg.
Ifthefileislocatedonanotherserverinyournetwork,thepathmustcontainfiveslashesafter
"file:".
Tip: Afteraddingtheremotefile,youmayright-clickitandselectDownload Resource.This
allowsyoutomaintainacentralfile,fromwhichyoucanquicklydownloadacopytoyourtem-
platewithouthavingtocopy&paste.
Notethatalocalcopyofaremoteresourceisasnapshot;itisnotautomaticallykeptinsyncwith
itsremotecontent.Youcandownloadtheremoteresourceagaintooverwritethelocalcopywith
updatedcontent.Ifyoudon'twantalocalcopytobeoverwrittenyoushouldrenameitbefore
downloadingtheremoteresourceagain.
ThereareafewadvantagestoresourceshostedonaCDN:
l
Theseresourcesarenotservedbyyourserver,savingonspace,bandwidthandprocessing.
l
UsingapopularCDNtakesadvantageofcaching-aclienthavingvisitedanotherwebsiteusing
thatsameCDNwillhavethefileincacheandnotre-downloaditmakingforfasterloadtimesfor
theclient.
Tip: TorefreshtheremoteresourcesinaDesignerview,usetheRefreshoptioninthemenu
(View > Refresh)ortheRefreshbuttonatthetopoftheWorkspace.
Using a Sass file
ACSSpreprocessorisaCSSextensionlanguagethatallowsyoutoenhanceCSSwithcode(vari-
ables,forexample)andthencompileitintoplainCSS.CSSPreprocessorSassisintegratedin
Page 264