Using .gyb outside of the stdlib


(Geordie J) #1

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

Thanks,
Geordie