如何从模板或带占位符的片段创建 bootstrap html 库以轻松更改 类?

how to create bootstrap html library from a template or a snippet with placeholders to change classes easily?

我目前正在使用 c# 来制作我提供的函数,这些函数带有参数来控制 bootstrap 元素,例如按钮和表格。这是一个例子,

Buttons button = new Buttons();
simple_button = button.addSimpleButton("red", "simpleButton", "large", "google.com","", "test");

这种方法很难遵循,创建和维护也很耗时。 有没有更简单的方法将其作为函数或带有占位符的代码段来使用简单的选项更改您想要的内容?

非常感谢任何帮助。

试用此库进行 asp.net 开发 Html 敏捷包 (HAP) http://html-agility-pack.net/

它已准备好解析 html 的函数,因此可能会有所帮助。 祝你好运。