<commit_before>package org.eknet.publet.web

import org.eknet.publet.resource.ContentType._
import org.eknet.publet.engine.PubletEngine
import org.eknet.publet.engine.convert.{ConverterEngine, KnockoffConverter}
import org.eknet.publet.{Path, Publet}
import org.eknet.publet.resource.{NodeContent, ContentType, Content}
import scala.xml.NodeSeq
import org.eknet.publet.engine.scalascript.ScalaHtmlConverter
import template._

/**
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @since 09.04.12 12:56
 */

class DefaultEngine(publet: Publet, val name: Symbol = 'main) extends PubletEngine {
  self =>

  private val convEngine = ConverterEngine()
  convEngine.addConverter(markdown -> html, KnockoffConverter)
  convEngine.addConverter(scal -> html, ScalaHtmlConverter)

  private val defaultEngine = new HtmlTemplateEngine('main, convEngine)
      with YamlTemplate<commit_msg>use code2html converter for js and css<commit_after>package org.eknet.publet.web

import org.eknet.publet.resource.ContentType._
import org.eknet.publet.engine.PubletEngine
import org.eknet.publet.engine.convert.{ConverterEngine, KnockoffConverter}
import org.eknet.publet.{Path, Publet}
import org.eknet.publet.resource.{NodeContent, ContentType, Content}
import scala.xml.NodeSeq
import org.eknet.publet.engine.scalascript.CodeHtmlConverter
import template._

/**
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @since 09.04.12 12:56
 */

class DefaultEngine(publet: Publet, val name: Symbol = 'main) extends PubletEngine {
  self =>

  private val convEngine = ConverterEngine()
  convEngine.addConverter(markdown -> html, KnockoffConverter)
  convEngine.addConverter(scal -> html, CodeHtmlConverter)
  convEngine.addConverter(css -> html, CodeHtmlConverter)
  convEngine.addConverter(javascript -> html, CodeHtmlConverter)

  private val defaultEngine = new HtmlTemplateEngine('main, convEngine)
      with YamlTemplate
{'fraction_non_alphanumeric': 0.11204188481675392, 'fraction_numerical': 0.01099476439790576, 'mean_word_length': 5.612456747404845, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '418176', 'n_tokens_mistral': 616, 'n_tokens_neox': 592, 'n_words': 123}