English 中文(简体)
铁锰吗?
原标题:A working template-engine for IronPython?

我热爱使用带有铁Python的冰模板,但急于这样做。 最好能够做到,无需加添甲 Python素标准平衡。 不知道这是否可行。

我与Ruby Erb syntax一样,希望能够使用类似的东西。

最佳回答
问题回答

是的——所建工程足以满足我的需要:

def content(result):  
    return """  
    <p>Thank you for posting!</p>  
    <p>Result : {result}</p>  
    """.format(result=result) 




相关问题
Create a new Tuple with one element modified

(I am working interactively with a WordprocessingDocument object in IronPython using the OpenXML SDK, but this is really a general Python question that should be applicable across all implementations) ...

Why can t I import my C# type into IronPython?

I have some types in a C# library I wrote, e.g.: namespace SprocGenerator.Generators { public class DeleteGenerator : GeneratorBase { public DeleteGenerator(string databaseName, ...

IronPython ScriptRuntime equivalent to CPython PYTHONPATH

The following import works inside ipy.exe prompt but fails using IronPython ScriptRuntime inside a C# 4.0 program. import ConfigParser C# code: using System; using System.Collections.Generic; using ...

Rollback in Ironpython using System.Data.SqlClient

I am unable to rollback using the following code snippet and need help: import clr import sys clr.AddReference( System.Data ) from System.Data.SqlClient import SqlConnection, SqlParameter, ...

Nonblocking webserver on .Net for Comet applications

I am trying to implement a Comet style (e.g. chat) application using IronPython. While I don t need to scale to twitter like dimensions, it is vital that the response time is lightening fast. All ...

IronPython asp.net IntelliSense

I m trying IronPython for asp.net, I got a simple CRUD screen to work. I ve read IntelliSense doesnt work for IronPython, but is there any way to get rid of Visual Studio underlining all the lines ...

C# Running IronPython On Multiple Threads

I have a WPF app that controls audio hardware. It uses the same PythonEngine on multiple threads. This causes strange errors I see from time to time where the PythonEngines Globals dictionary has ...

热门标签