1 25 26 package org.snipsnap.snip; 27 28 import java.sql.Date ; 29 30 36 37 public class BlogKit { 38 public static String getPostName() { 39 Date date = new Date (new java.util.Date ().getTime()); 40 return SnipUtil.toName(date); 41 } 42 43 public static String getContent(String title, String content) { 44 return content = "1 " + title + " {anchor:" + title + "}\n" + content; 45 } 46 } | Popular Tags |