As overmind said:
"Use a WText with formatting disabled on it, and it will pass it right
through to the page."
Uhm, you know to load a file into a string, right? :-)
2010/9/8 Diego <[email protected]>
> On 2:59 PM, OvermindDL1 wrote:
> > On Tue, Sep 7, 2010 at 12:47 PM, Diego <[email protected]>
> wrote:
> >> Hi folks,
> >>
> >> Is there any way to include a file that is not a Javascript library in a
> >> Wt page?
> >>
> >> For instance, if I want my page to include things like:
> >>
> >> <script id=hader-fs" type="x-shader/x-fragment">
> >> #ifdef GL_ES
> >> precision highp float;
> >> #endif
> >>
> >> varying vec4 vColor;
> >>
> >> void main(void) {
> >> gl_FragColor =Color;
> >> }
> >> </script>
> >>
> >>
> >>
> >> (WebGL stuff)
> >>
> >> How do I do that in Wt?
> >>
> >> Thank you,
> > Use a WText with formatting disabled on it, and it will pass it right
> > through to the page.
> >
> >
> I thought of that but I need the file to be in an external file so I can
> modify it without having to recompile the Wt app. Any idea?
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
Kind Regards,
Dushan Savich
[email protected]
http://stosha.com/
+381 64 329 33 55
Nehruova 95/51
11070 New Belgrade
Belgrade
Serbia
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest