代码之家  ›  专栏  ›  技术社区  ›  yretuta

正在为php寻找一个好的HTML模板[关闭]

  •  0
  • yretuta  · 技术社区  · 15 年前

    这是一个HTML模板,不是PHP模板,不是Java或者别的什么。

    我在找类似haml for php的东西。我尝试了两个php项目,phml和phphaml,这两个项目都有严重的错误。

    你知道有什么好的HTML模板,最好是针对PHP的吗?

    编辑 我在找能扭转这个局面的东西

    <h1>Heading</h1>
    <p>entry</p>
    <blockquote>quote</blockquote>
    

    像这样的东西

    h1 : heading
    p : entry
    blockquote : quote 
    

    有点像什么 phphaml

    3 回复  |  直到 10 年前
        1
  •  0
  •   Ben Everard    15 年前

    你为什么不看看纺织品?

    http://textism.com/tools/textile/

    看看右边的示例语法,这里是一个示例…

    h2{color:green}. This is a title
    
    h3. This is a subhead
    
    p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.
    

    转换为:

    <h2 style="color:green;">This is a title</h2>
    
    <h3>This is a subhead</h3>
    
    <p style="color:red;">This is some text of dubious character. Isn&#8217;t the use of &#8220;quotes&#8221; just lazy writing&#8212;and theft of &#8216;intellectual property&#8217; besides? I think the time has come to see a block quote.</p>
    

    右边栏底部还有其他示例。

        2
  •  0
  •   Marc Weber    14 年前

    尝试 http://haml-to-php.com/ 这是对基于最小解析器引擎的PHAMLP的完全重写。

        3
  •  -1
  •   GraphicsMuncher    12 年前

    您可以使用: http://github.com/mo-zag/watcher . 有一个关于如何在RubyHaml文件中添加PHP代码的指南。此监视程序将监视文件并将其保存到给定的文件夹中。设置起来也很简单。您不需要使用任何PHP模板解析器,只需要在Ruby中使用本机的haml和sass。