Editorial Workflows

Read yaml

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Persistent storage of Editorial variables...

Opens a yaml file and does workflow.set_variable() on each key, value pair

Shared by: @cclauss

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import yaml

with open('vbdb.yaml') as in_file:
	  data_dict = yaml.load(in_file)

for key, value in data_dict.items():
	  workflow.set_variable(key, value)

workflow.set_output(workflow.get_input())  # passthru