[swift-users] Using .gyb outside of the stdlib

Geordie J geojay at gmail.com
Wed May 3 18:15:57 CDT 2017

Hi again, another question:

Is it possible to use .gyb files to automatically generate repetitive code outside of the stdlib? Preferably in a SwiftPM package? Here’s an example of what I’ve been using it for:

https://github.com/SwiftAndroid/swift-jni/blob/master/JNIFields.swift.gyb <https://github.com/SwiftAndroid/swift-jni/blob/master/JNIFields.swift.gyb>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170504/c65d060e/attachment.html>

More information about the swift-users mailing list