This tutorial examines the use of standard .txt files and .xml files to populate templates: L1
Understanding differing external data usage and requirements in Swift templates: L1
Chapter 1: Populating a template from a standard .txt file
Chapter 2: Populating a template from an .xml file
30 minutes
All new users
To find where you can download Ruby, open the Ruby Basics guide here and follow the installation instructions.
#Set the file and path using quotes and double backslashes
file = File.open("your path and filename", "rb")
contents = file.read
#Set the input as _ underscored + input name
_Contents = contents
data.setInputValue("bringOn", "contents", _Contents)
$filename = _filename
textUpper:=/data/Sheet1/*[[line1]]/@name
textLower:=/data/Sheet1/*[[line2]]/@name
If you want to review Justin Avery's instructor project at this point in the course, you can download the project zip here.