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="shader-fs" type="x-shader/x-fragment">
>  #ifdef GL_ES
>  precision highp float;
>  #endif
>
>  varying vec4 vColor;
>
>  void main(void) {
>    gl_FragColor = vColor;
>  }
> </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.

------------------------------------------------------------------------------
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

Reply via email to