sustrik / ribosome

Simple code generator
248 stars 21 forks source link

'include' command doesn't work with variable argument names #58

Open saltzm opened 6 years ago

saltzm commented 6 years ago

It would be really nice to be able to do things like:

var file = "my_file.js.dna" ./!include(file) but instead this causes "Bad command syntax". The same thing works with e.g. the output command, though. I'd like to be able to pass in a file to include as a command line argument but because of this limitation, I can't.

I realize that it's because doing includes happens in a different path in the rna generation phase than the output related commands, but it seems like some workaround should be possible.

sustrik commented 6 years ago

Sounds reasonable. I would accept a patch to that effect.