pillar source import

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

pillar source import

Peter Uhnak
Hi,

is it currently possible to import file contents into pillar?

For example I have a script stored in my-script.st and I would like to do something like

[[[source=my-script.st
]]]
or 
{import 'my-another-pillar-file.pillar'}
or something like that.

I can overcome this with some bash preprocessing, but is there some syntax, or plan for it directly in Pillar?

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: pillar source import

stepharo
Hi peter

I do not think that this is possible.
We should probably add support for it.

Stef

is it currently possible to import file contents into pillar?

For example I have a script stored in my-script.st and I would like to do something like

[[[source=my-script.st
]]]
or 
{import 'my-another-pillar-file.pillar'}
or something like that.

I can overcome this with some bash preprocessing, but is there some syntax, or plan for it directly in Pillar?

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: pillar source import

Damien Cassou
In reply to this post by Peter Uhnak

Peter Uhnák writes:

> Hi,
>
> is it currently possible to import file contents into pillar?
>
> For example I have a script stored in my-script.st and I would like to do
> something like
>
> [[[source=my-script.st
> ]]]

thanks for the feature suggestion. This is now in
http://www.smalltalkhub.com/#!/~Pier/Pillar under the section "Script
externalization".


> {import 'my-another-pillar-file.pillar'}
> or something like that.


this was already in the feature list under "Transformers".


--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill