Works for txt2tags 2.6, but the trunk is broken (since the template patch).
On Wed, Apr 10, 2013 at 1:58 AM, Aurelio Jargas <[email protected]> wrote: > Yes, you can. Please see the two samples in the samples/module directory. > > https://code.google.com/p/txt2tags/source/browse/trunk#trunk%2Fsamples%2Fmodule > > > On Tuesday, April 9, 2013, gui b wrote: >> >> Ok thanks >> >> So we can't import txt2tags and call a function for generate the output? >> >> >> 2013/4/9 Forgeot Eric <[email protected]> >>> >>> yes, you can do this: >>> >>> echo -e "\n\n\n==Hello==\n//blabla//" | txt2tags -t html - >>> >>> and if you want to write the html output: >>> >>> echo -e "\n\n\n==Hello==\n//blabla//" | txt2tags -t html - > out.html >>> >>> (from >>> http://txt2tags.org/userguide/TheThreeUserInterfacesGuiWebandCommandLine.html) >>> >>> Eric >>> >>> >>> ________________________________ >>> De : gui b <[email protected]> >>> À : [email protected] >>> Envoyé le : Mardi 9 avril 2013 13h19 >>> Objet : [t2t] txt2tags in a python script >>> >>> Hi, >>> >>> I would like to create a python script that uses a variable as input for >>> txt2tags without the creation of a t2t file. Is it possible? >>> Thanks >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Precog is a next-generation analytics platform capable of advanced >>> analytics on semi-structured data. The platform includes APIs for >>> building >>> apps and a phenomenal toolset for data science. Developers can use >>> our toolset for easy data analysis & visualization. Get a free account! >>> http://www2.precog.com/precogplatform/slashdotnewsletter >>> _______________________________________________ >>> txt2tags-list mailing list >>> https://lists.sourceforge.net/lists/listinfo/txt2tags-list >>> >> > > > -- > Aurelio | www.aurelio.net | @oreio > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > txt2tags-list mailing list > https://lists.sourceforge.net/lists/listinfo/txt2tags-list > -- FLOSS Engineer & Lawyer ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ txt2tags-list mailing list https://lists.sourceforge.net/lists/listinfo/txt2tags-list
