{% assign scriptData = site.data.[page.folderName][lang][file] %} {%- assign dataAtt = "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName' data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName | replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace: "$tool", page.tool }} {%- endfor -%} {%- endif -%}